1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-28 01:18:30 +00:00

fix: test

This commit is contained in:
DarkCat09 2025-03-29 23:34:41 +04:00
parent cf21dc8b93
commit 7a369b1bf6
No known key found for this signature in database

View File

@ -798,13 +798,15 @@ class VKMusicIE(VKBaseIE):
'info_dict': { 'info_dict': {
'id': '-2000984503_984503', 'id': '-2000984503_984503',
'title': 'Linkin Park - One More Light', 'title': 'Linkin Park - One More Light',
'description': '',
'album': 'One More Light', 'album': 'One More Light',
'uploader': 'Linkin Park', 'uploader': 'Linkin Park',
'artist': 'Linkin Park', 'artists': ['Linkin Park'],
'thumbnail': r're:https?://.*\.jpg', 'thumbnail': r're:https?://.*\.jpg',
'genre': 'Альтернатива', 'genres': ['Alternative'],
'release_year': 2017, 'release_year': 2017,
'modified_timestamp': int, 'modified_timestamp': int,
'modified_date': str,
'view_count': int, 'view_count': int,
}, },
'playlist_count': 10, 'playlist_count': 10,
@ -921,7 +923,7 @@ def _real_extract(self, url):
album=title, album=title,
uploader=artist, uploader=artist,
artists=[artist], artists=[artist],
thumbnails=[traverse_obj(meta, {'url': 'coverUrl'})], thumbnail=meta.get('coverUrl'), # XXX: should i also specify `thumbnails`?
genres=[genre] if genre else [], genres=[genre] if genre else [],
release_year=int_or_none(year), # XXX: is None ok here? release_year=int_or_none(year), # XXX: is None ok here?
modified_timestamp=int_or_none(meta.get('lastUpdated')), modified_timestamp=int_or_none(meta.get('lastUpdated')),