1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-27 17:08:32 +00:00
This commit is contained in:
bashonly 2025-06-12 23:20:54 +00:00 committed by GitHub
parent a32ac8fe0d
commit 3cf5156c7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,6 @@
class MonsterSirenHypergryphMusicIE(InfoExtractor):
IE_NAME = 'monstersiren'
IE_DESC = '塞壬唱片'
_API_BASE = 'https://monster-siren.hypergryph.com/api'
_VALID_URL = r'https?://monster-siren\.hypergryph\.com/music/(?P<id>\d+)'
_TESTS = [{
@ -39,8 +38,7 @@ class MonsterSirenHypergryphMusicIE(InfoExtractor):
def _real_extract(self, url):
audio_id = self._match_id(url)
song = self._download_json(
f'{self._API_BASE}/song/{audio_id}', audio_id)
song = self._download_json(f'{self._API_BASE}/song/{audio_id}', audio_id)
if traverse_obj(song, 'code') != 0:
msg = traverse_obj(song, ('msg', {str}, filter))
raise ExtractorError(