1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-06-02 10:29:28 +00:00

[Epidemic Sound] use index as id instead of slug

This commit is contained in:
realRobotix 2023-12-05 23:29:32 +01:00
parent f4b3f094ac
commit 4a49a2f498
No known key found for this signature in database
GPG key ID: 7F4C32C9D72DAF0F

View file

@ -18,7 +18,8 @@ class EpidemicSoundIE(InfoExtractor):
'url': 'https://www.epidemicsound.com/track/yFfQVRpSPz/',
'md5': 'd98ff2ddb49e8acab9716541cbc9dfac',
'info_dict': {
'id': 'yFfQVRpSPz',
'id': '45014',
'display_id': 'yFfQVRpSPz',
'ext': 'mp3',
'tags': ['foley', 'door', 'knock', 'glass', 'window', 'glass door knock'],
'title': 'Door Knock Door 1',
@ -35,7 +36,8 @@ class EpidemicSoundIE(InfoExtractor):
'url': 'https://www.epidemicsound.com/track/mj8GTTwsZd/',
'md5': 'c82b745890f9baf18dc2f8d568ee3830',
'info_dict': {
'id': 'mj8GTTwsZd',
'id': '148700',
'display_id': 'mj8GTTwsZd',
'ext': 'mp3',
'tags': ['liquid drum n bass', 'energetic'],
'title': 'Noplace',
@ -76,6 +78,7 @@ class EpidemicSoundIE(InfoExtractor):
self._sort_formats(formats)
info = traverse_obj(json_data, {
'id': ('id', T(txt_or_none)),
'tags': ('metadataTags', Ellipsis, T(txt_or_none)),
'title': ('title', T(txt_or_none)),
'duration': ('length', T(float_or_none)),
@ -91,7 +94,7 @@ class EpidemicSoundIE(InfoExtractor):
}))
info.update({
'id': video_id,
'display_id': video_id,
'formats': formats,
})