
    VGh                     B    d dl Z ddlmZ ddlmZmZmZ  G d de      Zy)    N   )InfoExtractor   )determine_extparse_durationunified_strdatec            	       D    e Zd ZdZdZdgZdddddd	d
ddddidgdZd Zy)
HuffPostIEzHuffington Postz(?x)
        https?://(embed\.)?live\.huffingtonpost\.com/
        (?:
            r/segment/[^/]+/|
            HPLEmbedPlayer/\?segmentId=
        )
        (?P<id>[0-9a-f]+)zP<iframe[^>]+?src=(["\'])(?P<url>https?://embed\.live\.huffingtonpost\.com/.+?)\1zMhttp://live.huffingtonpost.com/r/segment/legalese-it/52dd3e4b02a7602131000677 55f5e8981c1c80a64706a44b74833de852dd3e4b02a7602131000677mp4zLegalese It! with @MikeSacksHPzThis week on Legalese It, Mike talks to David Bosco about his new book on the ICC, "Rough Justice," he also discusses the Virginia AG's historic stance on gay marriage, the execution of Edgar Tamayo, the ICC's delay of Kenya's President and more.  i  20140124)idexttitledescriptiondurationupload_dateskip_downloadTzHTTP Error 404: Not Found)urlmd5	info_dictparamsexpected_warningsc           
      $   | j                  |      }d| d}| j                  ||      d   }|d   }t        |j                  d            }t	        |j                  di       j                  d      xs |j                  d            }|j                  d	      }g }	t        d |d
   j                               D ]>  }t        j                  d|      }
|
s|	j                  ||
j                  d      d       @ g }|j                  di       }t        |j                  di       j                               t        |j                  di       j                               z   }|D ]  \  }}t        |      }|dk(  r&|j                  | j                  ||ddd             <|dk(  r(|j                  | j!                  |dz   |dd             i|j                  ||j#                  dd      d||j%                  d      rdnd d        |||||||	dS ) Nz2http://embed.live.huffingtonpost.com/api/segments/z.jsondatar   running_timeschedule	starts_atsegment_start_date_timer   imagesz.*-([0-9]+x[0-9]+)\.r   )r   
resolutionsourceslive
live_againm3u8r   hlsF)r   m3u8_idfatalf4mz?hdcore=2.9.5hds)f4m_idr)   /.zaudio/none)format	format_idr   r   vcodec)r   r   r   formatsr   r   
thumbnails)	_match_id_download_jsonr   getr   filtervaluesrematchappendgrouplistitemsr   extend_extract_m3u8_formats_extract_f4m_formatsreplace
startswith)selfr   video_idapi_urlr   video_titler   r   r   r4   mr3   r#   live_sourceskeyr   s                   b/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/yt_dlp/extractor/huffpost.py_real_extractzHuffPostIE._real_extract(   s'   >>#&FxjPUV""7H5f=7m!$((>":;%HHZ$((5\B[9\^hh}-
$X 5 5 78 	C0#6Aggaj 		 ((9b)GKK399;<tGKKP\^`DaDgDgDi?jj$ 	HC$Cf}t99ue5  :  J Kt88/)8E  9  P Q !!$S#!6 (+x(@fd  	$  & &$
 	
    N)__name__
__module____qualname__IE_DESC
_VALID_URL_EMBED_REGEX_TESTrM    rN   rL   r
   r
      s\    GJ hhL _1,5 Y%
 T
 ::E$2
rN   r
   )r:   commonr   utilsr   r   r   r
   rV   rN   rL   <module>rY      s#    	 ! O
 O
rN   