mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
[common] Follow convention of using 'cls' in classmethods
This commit is contained in:
parent
d7c1630570
commit
8c97f81943
1 changed files with 2 additions and 2 deletions
|
@ -1289,11 +1289,11 @@ def _merge_subtitle_items(subtitle_list1, subtitle_list2):
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _merge_subtitles(kls, subtitle_dict1, subtitle_dict2):
|
def _merge_subtitles(cls, subtitle_dict1, subtitle_dict2):
|
||||||
""" Merge two subtitle dictionaries, language by language. """
|
""" Merge two subtitle dictionaries, language by language. """
|
||||||
ret = dict(subtitle_dict1)
|
ret = dict(subtitle_dict1)
|
||||||
for lang in subtitle_dict2:
|
for lang in subtitle_dict2:
|
||||||
ret[lang] = kls._merge_subtitle_items(subtitle_dict1.get(lang, []), subtitle_dict2[lang])
|
ret[lang] = cls._merge_subtitle_items(subtitle_dict1.get(lang, []), subtitle_dict2[lang])
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def extract_automatic_captions(self, *args, **kwargs):
|
def extract_automatic_captions(self, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue