[francetv] Fix wrong variable name
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 28 Jul 2014 13:21:05 +0000 (15:21 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 28 Jul 2014 13:21:05 +0000 (15:21 +0200)
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 = []