mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 01:08:10 +00:00
[francetv] fix style issues reported by flake8
* Don't redefine variable in list comprehension * Line missing indentation
This commit is contained in:
parent
0a192fbea7
commit
7ccb2b84dd
1 changed files with 4 additions and 4 deletions
|
@ -85,9 +85,9 @@ class FranceTVBaseInfoExtractor(InfoExtractor):
|
|||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue