From: Philipp Hagemeister Date: Tue, 24 Feb 2015 10:37:27 +0000 (+0100) Subject: [rtve] PEP8 X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=9c665ab72e5fc99989800109cdada5acc3af56c5;p=youtube-dl.git [rtve] PEP8 --- diff --git a/youtube_dl/extractor/rtve.py b/youtube_dl/extractor/rtve.py index 27cd34b7d..c0fd23ff1 100644 --- a/youtube_dl/extractor/rtve.py +++ b/youtube_dl/extractor/rtve.py @@ -119,7 +119,8 @@ class RTVEALaCartaIE(InfoExtractor): subs = self._download_json( sub_file + '.json', video_id, 'Downloading subtitles info')['page']['items'] - return dict((s['lang'], [{'ext': 'vtt', 'url': s['src']}]) + return dict( + (s['lang'], [{'ext': 'vtt', 'url': s['src']}]) for s in subs)