mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
feat: new missevan_stream_types
This commit is contained in:
parent
d40a15de5c
commit
3881ed3f94
@ -75,17 +75,13 @@ class _Dispatcher(object):
|
|||||||
raise _NoMatchException()
|
raise _NoMatchException()
|
||||||
|
|
||||||
missevan_stream_types = [
|
missevan_stream_types = [
|
||||||
{'id': 'source', 'quality': '源文件', 'url_json_key': 'soundurl',
|
{'id': 'source', 'quality': '源文件', 'url_json_key': 'soundurl'},
|
||||||
'resource_url_fmt': 'sound/{resource_url}'},
|
|
||||||
{'id': '320', 'quality': '320 Kbps', 'url_json_key': 'soundurl_64'},
|
|
||||||
{'id': '128', 'quality': '128 Kbps', 'url_json_key': 'soundurl_128'},
|
{'id': '128', 'quality': '128 Kbps', 'url_json_key': 'soundurl_128'},
|
||||||
{'id': '32', 'quality': '32 Kbps', 'url_json_key': 'soundurl_32'},
|
|
||||||
{'id': 'covers', 'desc': '封面图', 'url_json_key': 'cover_image',
|
{'id': 'covers', 'desc': '封面图', 'url_json_key': 'cover_image',
|
||||||
'default_src': 'covers/nocover.png',
|
'default_src': 'covers/nocover.png',
|
||||||
'resource_url_fmt': 'covers/{resource_url}'},
|
'resource_url_fmt': 'covers/{resource_url}'},
|
||||||
{'id': 'coversmini', 'desc': '封面缩略图', 'url_json_key': 'cover_image',
|
{'id': 'coversmini', 'desc': '封面缩略图', 'url_json_key': 'front_cover',
|
||||||
'default_src': 'coversmini/nocover.png',
|
'default_src': 'coversmini/nocover.png'}
|
||||||
'resource_url_fmt': 'coversmini/{resource_url}'}
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def _get_resource_uri(data, stream_type):
|
def _get_resource_uri(data, stream_type):
|
||||||
|
Loading…
Reference in New Issue
Block a user