
    yf	                     :    d dl mZ ddlmZmZmZ  G d de      Zy)   )InfoExtractor   )parse_age_limitparse_durationtraverse_objc            
       |    e Zd ZdZdddddddg d	d
ddiddddddddg dd
ddiddddg ddddddidgZd Zy)MagellanTVIEzAhttps?://(?:www\.)?magellantv\.com/(?:watch|video)/(?P<id>[\w-]+)z<https://www.magellantv.com/watch/my-dads-on-death-row?type=vzmy-dads-on-death-rowmp4zMy Dad's On Death Rowz$md5:33ba23b9f0651fc4537ed19b1d5b0d7ag     @   )JusticeRealityzUnited States
True Crime)idexttitledescriptionduration	age_limittagsskip_downloadm3u8)url	info_dictparamszAhttps://www.magellantv.com/video/james-bulger-the-new-revelationsz james-bulger-the-new-revelationsz!James Bulger: The New Revelationsz$md5:7b97922038bad1d0fe8d0470d8a189f2g     @    )Investigationr   r   Europez3https://www.magellantv.com/watch/celebration-nationzcelebration-nation)zArt & CulturezHuman InterestAnthropologyChinaHistory	Ancestors)r   r   r   r   r   c                 B   | j                  |      }| j                  ||      }t        | j                  ||      ddddt        hfd      }| j                  |d   |      \  }}|||dt        |d	t        hfd
dt        hfdt        hfdt        hfddt        hfd      S )Nprops	pagePropsreactContext))videodetail)seriescurrentEpisodeF)get_alljwpVideoUrl)r   formats	subtitlesr   metadatar   r   ratingCategoryr   .)r   r   r   r   r   )		_match_id_download_webpager   _search_nextjs_datadict#_extract_m3u8_formats_and_subtitlesstrr   r   )selfr   video_idwebpagedatar,   r-   s          =/usr/lib/python3/dist-packages/yt_dlp/extractor/magellantv.py_real_extractzMagellanTVIE._real_extract+   s    >>#&((h7D44WhG[.?$JIRWY "EEd=FY[cd "
 4!C5) *MC5A'.)9:.0ABse," 	
 	
    N)__name__
__module____qualname__
_VALID_URL_TESTSr;    r<   r:   r	   r	      s    UJM(-AI
 #F+ S48AH
 #F+ E&[ 
 #F+
1"FH
r<   r	   N)commonr   utilsr   r   r   r	   rB   r<   r:   <module>rE      s    ! A A9
= 9
r<   