mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 01:18:30 +00:00
minutia
This commit is contained in:
parent
a32ac8fe0d
commit
3cf5156c7a
@ -10,7 +10,6 @@
|
|||||||
class MonsterSirenHypergryphMusicIE(InfoExtractor):
|
class MonsterSirenHypergryphMusicIE(InfoExtractor):
|
||||||
IE_NAME = 'monstersiren'
|
IE_NAME = 'monstersiren'
|
||||||
IE_DESC = '塞壬唱片'
|
IE_DESC = '塞壬唱片'
|
||||||
|
|
||||||
_API_BASE = 'https://monster-siren.hypergryph.com/api'
|
_API_BASE = 'https://monster-siren.hypergryph.com/api'
|
||||||
_VALID_URL = r'https?://monster-siren\.hypergryph\.com/music/(?P<id>\d+)'
|
_VALID_URL = r'https?://monster-siren\.hypergryph\.com/music/(?P<id>\d+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
@ -39,8 +38,7 @@ class MonsterSirenHypergryphMusicIE(InfoExtractor):
|
|||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
audio_id = self._match_id(url)
|
audio_id = self._match_id(url)
|
||||||
song = self._download_json(
|
song = self._download_json(f'{self._API_BASE}/song/{audio_id}', audio_id)
|
||||||
f'{self._API_BASE}/song/{audio_id}', audio_id)
|
|
||||||
if traverse_obj(song, 'code') != 0:
|
if traverse_obj(song, 'code') != 0:
|
||||||
msg = traverse_obj(song, ('msg', {str}, filter))
|
msg = traverse_obj(song, ('msg', {str}, filter))
|
||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
|
Loading…
Reference in New Issue
Block a user