1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-05 02:32:44 +01:00

[francetv] fix style issues reported by flake8

* Don't redefine variable in list comprehension
* Line missing indentation
This commit is contained in:
Jaime Marquínez Ferrándiz 2015-10-28 08:22:04 +01:00
parent 0a192fbea7
commit 7ccb2b84dd

View File

@ -85,9 +85,9 @@ def _extract_video(self, video_id, catalogue):
subtitles = {}
subtitles_list = [{
'url': subtitle['url'],
'ext': subtitle.get('format'),
} for subtitle in info.get('subtitles', []) if subtitle.get('url')]
'url': subformat['url'],
'ext': subformat.get('format'),
} for subformat in info.get('subtitles', []) if subformat.get('url')]
if subtitles_list:
subtitles['fr'] = subtitles_list
@ -118,7 +118,7 @@ def _real_extract(self, url):
'id_video', webpage, 'video id', default=None)
if not video_id:
video_id = self._search_regex(
r'data-diffusion=["\'](\d+)', webpage, 'video id')
r'data-diffusion=["\'](\d+)', webpage, 'video id')
return self._extract_video(video_id, 'Pluzz')