[francetv] fix style issues reported by flake8

* Don't redefine variable in list comprehension
* Line missing indentation
pull/2/head
Jaime Marquínez Ferrándiz 9 years ago
parent 0a192fbea7
commit 7ccb2b84dd

@ -85,9 +85,9 @@ class FranceTVBaseInfoExtractor(InfoExtractor):
subtitles = {} subtitles = {}
subtitles_list = [{ subtitles_list = [{
'url': subtitle['url'], 'url': subformat['url'],
'ext': subtitle.get('format'), 'ext': subformat.get('format'),
} for subtitle in info.get('subtitles', []) if subtitle.get('url')] } for subformat in info.get('subtitles', []) if subformat.get('url')]
if subtitles_list: if subtitles_list:
subtitles['fr'] = subtitles_list subtitles['fr'] = subtitles_list

Loading…
Cancel
Save