1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 09:12:40 +01:00

[rtve] PEP8

This commit is contained in:
Philipp Hagemeister 2015-02-24 11:37:27 +01:00
parent b665ba6aa6
commit 9c665ab72e

View File

@ -119,7 +119,8 @@ def _get_subtitles(self, video_id, sub_file):
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)