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 @@ def _extract_video(self, video_id): 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 = []