Merge branch 'vgtv' of https://github.com/mrkolby/youtube-dl into mrkolby-vgtv
[youtube-dl] / youtube_dl / extractor / francetv.py
index 9e2a93871634beed445e077e6cea3113d9454ecb..1b0e8e5d59dc23d52d7fb15d7e46e0b1383a7435 100644 (file)
@@ -21,7 +21,7 @@ class FranceTVBaseInfoExtractor(InfoExtractor):
         manifest_url = info.find('videos/video/url').text
         manifest_url = manifest_url.replace('/z/', '/i/')
         
-        if url.startswith('rtmp'):
+        if manifest_url.startswith('rtmp'):
             formats = [{'url': manifest_url, 'ext': 'flv'}]
         else:
             formats = []