mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-29 19:47:54 +01:00
[pluralsight] replace dict comprehension for 'Python < 2.7' compatibility
This commit is contained in:
parent
0621db19e4
commit
585f8f6cd0
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user