mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-02-19 19:50:46 +00:00
flake8 fix + soundcloud tests
This commit is contained in:
parent
ea40ffd1e1
commit
bc842c27a7
@ -251,10 +251,15 @@ class SoundcloudIE(InfoExtractor):
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
# with AAC HQ format available via OAuth token
|
# AAC HQ format available (account with active subscription needed)
|
||||||
'url': 'https://soundcloud.com/wandw/the-chainsmokers-ft-daya-dont-let-me-down-ww-remix-1',
|
'url': 'https://soundcloud.com/wandw/the-chainsmokers-ft-daya-dont-let-me-down-ww-remix-1',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
# Go+ (account with active subscription needed)
|
||||||
|
'url': 'https://soundcloud.com/taylorswiftofficial/look-what-you-made-me-do',
|
||||||
|
'only_matching': True,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
_API_V2_BASE = 'https://api-v2.soundcloud.com/'
|
_API_V2_BASE = 'https://api-v2.soundcloud.com/'
|
||||||
|
@ -1589,7 +1589,7 @@ def make_captions(sub_url, sub_langs):
|
|||||||
if lang_code:
|
if lang_code:
|
||||||
sub_lang_list.append(lang_code)
|
sub_lang_list.append(lang_code)
|
||||||
return make_captions(base_url, sub_lang_list)
|
return make_captions(base_url, sub_lang_list)
|
||||||
|
|
||||||
self._downloader.report_warning("Couldn't find automatic captions for %s" % video_id)
|
self._downloader.report_warning("Couldn't find automatic captions for %s" % video_id)
|
||||||
return {}
|
return {}
|
||||||
# Some videos don't provide ttsurl but rather caption_tracks and
|
# Some videos don't provide ttsurl but rather caption_tracks and
|
||||||
|
Loading…
Reference in New Issue
Block a user