mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-29 10:41:23 +01:00
Compare commits
No commits in common. "48416c37184feabaf96e4df121413fa87bc2eca2" and "245ca4e51581321f7cd2e51c45f87bb110fbd37b" have entirely different histories.
48416c3718
...
245ca4e515
|
@ -26,7 +26,6 @@ class ExtremeMusicBaseIE(InfoExtractor):
|
|||
# use user's own country code if no code (geo_bypass_country or pre-defined country code) is provided
|
||||
if not country:
|
||||
country = self._download_webpage('https://ipapi.co/country_code', video_id)
|
||||
self.to_screen(f'Set country code to {country}')
|
||||
env = self._download_json('https://www.extrememusic.com/env', video_id)
|
||||
self._REQUEST_HEADERS = {
|
||||
'Accept': 'application/json',
|
||||
|
@ -85,9 +84,7 @@ class ExtremeMusicBaseIE(InfoExtractor):
|
|||
if sound := traverse_obj(album_data['track_sounds'],
|
||||
(lambda _, v: v['id'] == int(sound_id) and v['track_id'] == int(track_id),
|
||||
{dict}), get_all=False):
|
||||
if (version_id
|
||||
or 'all' in self._REQUIRE_VERSION
|
||||
or any(x in sound['version_type'].lower() for x in self._REQUIRE_VERSION)):
|
||||
if version_id or any(x in self._REQUIRE_VERSION for x in ['all', sound['version_type'].lower()]):
|
||||
formats = []
|
||||
for audio_url in traverse_obj(sound, ('assets', 'audio', ('preview_url',
|
||||
'preview_url_hls'))):
|
||||
|
@ -286,7 +283,7 @@ class ExtremeMusicPIE(ExtremeMusicBaseIE):
|
|||
'thumbnail': 'https://d2oet5a29f64lj.cloudfront.net/img-data/w/2480/featureditem/square/thumbnail_PLAYLIST_Nice-square-(formerly ChristmasTraditional).jpg',
|
||||
},
|
||||
'playlist_mincount': 29,
|
||||
'expected_warnings': ['This playlist has geo-restricted items. Try using --xff to specify a different country code, e.g. DE'],
|
||||
'expected_warnings': ['This playlist has geo-restricted items. Try using --xff to specify a different country code.'],
|
||||
}, {
|
||||
'url': 'https://www.extrememusic.com/playlists/fUKKU5KAfK61pAAKp4U4KpKUxsRk2ki_fU117KpUUAAUKAUfpA6UAfAKK8Ul5ji',
|
||||
'info_dict': {
|
||||
|
@ -336,7 +333,7 @@ class ExtremeMusicPIE(ExtremeMusicBaseIE):
|
|||
|
||||
if entries:
|
||||
if len(track_done) < playlist['playlist']['playlist_items_count']:
|
||||
self.report_warning('This playlist has geo-restricted items. Try using --xff to specify a different country code, e.g. DE')
|
||||
self.report_warning('This playlist has geo-restricted items. Try using --xff to specify a different country code.')
|
||||
|
||||
for image in traverse_obj(playlist['playlist'], ('images', 'square')):
|
||||
thumbnails.append(traverse_obj(image, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user