
    V|h                     2    S SK Jr  SSKJr   " S S\5      rg)   )InfoExtractor   )parse_durationc            	       8    \ rS rSrSrSSSSSSS	S
S.S.rS rSrg)HistoricFilmsIE   z@https?://(?:www\.)?historicfilms\.com/(?:tapes/|play)(?P<id>\d+)z'http://www.historicfilms.com/tapes/4728 d4a437aec45d8d796a38a215db064e9a4728movzHistoric Films: GP-7z$md5:1a86a0f3ac54024e419aba97210d959azre:^https?://.*\.jpg$i0  )idexttitledescription	thumbnailduration)urlmd5	info_dictc                 f   U R                  U5      nU R                  X5      nU R                  SS/US5      nU R                  U5      nU R	                  U5      nU R                  SUS5      =(       d    U R                  U5      n[        U R                  SUS5      5      nSU SU S	3n	UU	UUUUS
.$ )Nzclass="tapeId"[^>]*>([^<]+)<ztapeId\s*:\s*"([^"]+)"ztape idthumbnailUrl
thumbnailsr   z#http://www.historicfilms.com/video/_z_web.mov)r   r   r   r   r   r   )	_match_id_download_webpage_search_regex_og_search_title_og_search_description_html_search_meta_og_search_thumbnailr   )
selfr   video_idwebpagetape_idr   r   r   r   	video_urls
             X/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/historicfilms.py_real_extractHistoricFilmsIE._real_extract   s    >>#&((7$$,.GHY  %%g.11':**G\3 Y6:6O6OPW6X 	!$"8"8#- . :'!H:XV	 &" 
 	
     N)__name__
__module____qualname____firstlineno__
_VALID_URL_TESTr&   __static_attributes__r)   r(   r%   r   r      s0    TJ81+A1
E
r(   r   N)commonr   utilsr   r   r)   r(   r%   <module>r3      s    ! "(
m (
r(   