Added tests for Matter extractor

This commit is contained in:
rubyist 2020-02-27 19:42:51 -08:00
parent b5879f6e44
commit c1020cf113

View File

@ -12,9 +12,23 @@ class MatterIE(InfoExtractor):
used to implement playlists or other content. used to implement playlists or other content.
""" """
_VALID_URL = r'https?://app.matter.online/tracks/(?P<id>\d+)/?' _VALID_URL = r'https?://app.matter.online/tracks/(?P<id>\d+)/?'
_TESTS = { _TESTS = [{
# TODO: Implement 'url': 'https://app.matter.online/tracks/12866',
} 'info_dict': {
'id': '12866',
'ext': 'mp3',
'title': 'Beautiful type beat',
'uploader': 'internet user',
},
}, {
'url': 'https://app.matter.online/tracks/18891',
'info_dict': {
'id': '18891',
'ext': 'mp3',
'title': 'starstruck',
'uploader': 'iwi.',
}
}]
def _real_extract(self, url): def _real_extract(self, url):
track_id = self._match_id(url) track_id = self._match_id(url)