
    Ği	                     R    d dl mZ ddlmZmZmZ ddlmZmZ  G d de          Z	dS )   )InfoExtractor   )ExtractorError
clean_htmlurl_or_none)subs_list_to_dicttraverse_objc            
       ^    e Zd ZdZdZdZdZdddddd	gd
ddddddddd	dgddddgZd ZdS )MonsterSirenHypergryphMusicIEmonstersirenu   塞壬唱片z(https://monster-siren.hypergryph.com/apiz9https?://monster-siren\.hypergryph\.com/music/(?P<id>\d+)z1https://monster-siren.hypergryph.com/music/514562514562wavzFlame Shadowu   塞壬唱片-MSRz$md5:19e2acfcd1b65b41b29e8079ab948053z,re:https?://web\.hycdn\.cn/siren/pic/.+\.jpg)idexttitlealbumartistsdescription	thumbnail)url	info_dictz1https://monster-siren.hypergryph.com/music/514518514518zHeavenly Me (Instrumental)zHeavenly Meu   AIYUE blessed : 理名z$md5:ce790b41c932d1ad72eb791d1d8ae598c                    |                      |          }|                     | j         d| |          }t          |d          dk    r>t          |dt          ht
          f          }t          |pdt          |                    d }t          |ddt          hf          x}r#|                     | j         d	| d
|d          }|ddt          |ddt          hfddt          hfddit          t          d          hfdt          hfdf          t          |ddt          hfdt          hfdt          hfdf          S )Nz/song/code    msgzAPI returned an error response)expecteddataalbumCidz/album/z/detailF)fatalnone)r   vcodecnamer   .r   lyricUrlen)lang	sourceUrl)r   r   	subtitlesr   introcoverUrl)r   r   r   )	_match_id_download_json	_API_BASEr	   strfilterr   boolallr   r   r   )selfr   audio_idsongr   r   album_ids          `C:\Users\betacode\Desktop\descargarYoutube\venv\Lib\site-packages\yt_dlp/extractor/hypergryph.py_real_extractz+MonsterSirenHypergryphMusicIE._real_extract'   s   >>#&&""dn#F#FH#F#FQQf%%**tecUF%;<<C 77$s))M M M M #D6:u*EFFF8 	T''>;;(;;;XU ( T TE 
 
 4& 3%%sSE2$j139JPT9U9U9U8VW#k]3	+ + "  
 56 3% '*6(;-8, , #  
 	
    N)	__name__
__module____qualname__IE_NAMEIE_DESCr-   
_VALID_URL_TESTSr7    r8   r6   r   r   
   s        GG:IMJB##*+AH
 
  C1"*,DEAH
 
 F0
 
 
 
 
r8   r   N)
commonr   utilsr   r   r   utils.traversalr   r	   r   r@   r8   r6   <module>rD      s    ! ! ! ! ! !         
 > = = = = = = =8
 8
 8
 8
 8
M 8
 8
 8
 8
 8
r8   