Compare commits

..

No commits in common. "4a49a2f498bdb1dc9851436f64a519cd96dd4dd8" and "46c8f4f84fcd7b1368ae88b9669f4a4bbdd44c47" have entirely different histories.

View File

@ -4,11 +4,11 @@ from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import (
float_or_none,
T,
traverse_obj,
txt_or_none,
unified_timestamp,
url_or_none,
traverse_obj,
T,
)
@ -18,8 +18,7 @@ class EpidemicSoundIE(InfoExtractor):
'url': 'https://www.epidemicsound.com/track/yFfQVRpSPz/',
'md5': 'd98ff2ddb49e8acab9716541cbc9dfac',
'info_dict': {
'id': '45014',
'display_id': 'yFfQVRpSPz',
'id': 'yFfQVRpSPz',
'ext': 'mp3',
'tags': ['foley', 'door', 'knock', 'glass', 'window', 'glass door knock'],
'title': 'Door Knock Door 1',
@ -28,16 +27,13 @@ class EpidemicSoundIE(InfoExtractor):
'timestamp': 1415320353,
'upload_date': '20141107',
'age_limit': None,
# check that the "best" format was found, since test file MD5 doesn't
# distinguish the formats
'format': 'full',
},
}, {
'url': 'https://www.epidemicsound.com/track/mj8GTTwsZd/',
'md5': 'c82b745890f9baf18dc2f8d568ee3830',
'info_dict': {
'id': '148700',
'display_id': 'mj8GTTwsZd',
'id': 'mj8GTTwsZd',
'ext': 'mp3',
'tags': ['liquid drum n bass', 'energetic'],
'title': 'Noplace',
@ -78,7 +74,6 @@ 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)),
@ -94,7 +89,7 @@ class EpidemicSoundIE(InfoExtractor):
}))
info.update({
'display_id': video_id,
'id': video_id,
'formats': formats,
})