1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-01 20:57:54 +01:00

[pluralsight] replace dict comprehension for 'Python < 2.7' compatibility

This commit is contained in:
Jaime Bergas Laborda 2020-04-17 13:15:47 +01:00
parent 0621db19e4
commit 585f8f6cd0

View File

@ -241,7 +241,7 @@ query viewClip {
return [{'ext': 'json', 'data': json.dumps(captions), }, return [{'ext': 'json', 'data': json.dumps(captions), },
{'ext': 'srt', 'data': self._convert_subtitles(duration, captions), }] {'ext': 'srt', 'data': self._convert_subtitles(duration, captions), }]
return {language: _get_captions_for_language(language) for language in languages} return dict((language, _get_captions_for_language(language)) for language in languages)
@staticmethod @staticmethod
def _convert_subtitles(duration, subs): def _convert_subtitles(duration, subs):