
    V|h'                     F    S SK Jr  SSKJrJrJr  SSKJr   " S S\5      rg)   )InfoExtractor   )parse_age_limitparse_durationurl_or_none)traverse_objc            
           \ rS rSrSrSSSSSSS	/ S
QS.SS0S.SSSSSSSSS/S.SS0S.SSS/ SQSSS.SS0S./rS rSrg)MagellanTVIE   zAhttps?://(?:www\.)?magellantv\.com/(?:watch|video)/(?P<id>[\w-]+)z;https://www.magellantv.com/watch/incas-the-new-story?type=vzincas-the-new-storymp4zIncas: The New Storyz$md5:936c7f6d711c02dfb9db22a067b586fe   g     @)zAncient HistoryArchaeologyAnthropology)idexttitledescription	age_limitdurationtagsskip_downloadm3u8)url	info_dictparamszFhttps://www.magellantv.com/video/tortured-to-death-murdering-the-nannyz%tortured-to-death-murdering-the-nannyz&Tortured to Death: Murdering the Nannyz$md5:d87033594fa218af2b1a8b49f52511e5g     @z
True CrimeMurderz:https://www.magellantv.com/watch/celebration-nation?type=szcelebration-nation)zArt & CulturezHuman Interestr   ChinaHistory	Ancestors)r   r   r   r   r   c                    U R                  U5      nU R                  X5      nU R                  X25      S   S   S   n[        US[        1[
        45      n/ 0 pv[        [        US[        145      5       H7  nU R                  XSSSS	9u  pUR                  U	5        U R                  XS
9  M9     U(       dO  [        USS[        145      =n(       a4  SU;   a  U R                  US9  U R                  U R                   SU 3SS9  UUUS.[        US[        14SS[        14S[        14S[         14SS[        14S.5      E$ )Nprops	pagePropsreactContext))videodetail)seriescurrentEpisode))	manifests.hlsjwp_video_urlr   r)   F)m3u8_idfatal)targeterrorDetailPageerrorMessagezavailable in your country)msgz said: T)expected)r   formats	subtitlesr   metadatar   r   ratingCategoryr   .)r   r   r   r   r   )	_match_id_download_webpage_search_nextjs_datar   dictanysetr   #_extract_m3u8_formats_and_subtitlesextend_merge_subtitlesstrraise_geo_restrictedraise_no_formatsIE_NAMEr   r   )selfr   video_idwebpagecontextdatar2   r3   m3u8_urlfmtssubserrors               U/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/magellantv.py_real_extractMagellanTVIE._real_extract,   s   >>#&((7**7=gF{STbcG&Y\`[acf%ghL0\_j^k/lmnHAAE5 B GJDNN4 !!$!9	 o
 \'<M~`c_d;e%ffEf*e3))e)4!!T\\N'%"AD!Q "
 4!C5) *MC5A'.)9:.0ABse," 	
 	
     N)__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSrM   __static_attributes__rP   rO   rL   r
   r
      s    UJL'+AF
 #F+ X9=A!8,
 #F+ L&[ 
 #F+
1"FH
rO   r
   N)	commonr   utilsr   r   r   utils.traversalr   r
   rP   rO   rL   <module>r[      s    ! @ @ *B
= B
rO   