Skip to content

A feature-rich command-line audio/video downloader

[francetv] Fix wrong variable name

Jaime Marquínez Ferrándiz4958ae205873
diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py
index 9e2a938716..1b0e8e5d59 100644
--- a/youtube_dl/extractor/francetv.py
+++ b/youtube_dl/extractor/francetv.py
@@ -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 = []