
    V|h                     2    S SK Jr  SSKJr   " S S\5      rg)   )InfoExtractor   )int_or_nonec                   l    \ rS rSrSrSSSSSSS	S
SS.S.SSSSSS	S
SS.S.SSSSSSSSS.S./rS rSrg)HarpodeonIE   zChttps?://(?:www\.)?harpodeon\.com/(?:video|preview)/\w+/(?P<id>\d+)zHhttps://www.harpodeon.com/video/The_Smoking_Out_of_Bella_Butts/268068288 727371564a6a9ebccef2073535b5b6bdz#Free video could become unavailable	268068288mp4zThe Smoking Out of Bella Buttsz$md5:47e16bdb41fc8a79c83ab83af11c8b77zVitagraph Company of Americai{  )idexttitledescriptioncreatorrelease_year)urlmd5skip	info_dictzJhttps://www.harpodeon.com/preview/The_Smoking_Out_of_Bella_Butts/268068288 6dfea5412845f690c7331be703f884db)r   r   r   z=https://www.harpodeon.com/preview/Behind_the_Screen/421838710 7979df9ca04637282cb7d172ab3a9c3b	421838710zBehind the Screenz$md5:008972a3dc51fba3965ee517d2ba9155zLone Star Corporationi|  c           
      .   U R                  U5      nU R                  X5      nU R                  SUSSSS9=(       d    Su  pEnU R                  SUS5      nU R                  S	US
S
S/S9u  pUUU U SU	 S3SU0U R	                  SUSS9U[        U5      S.$ )Nz(?x)
                <div[^>]+videoInfo[^<]*<h2[^>]*>(?P<title>[^>]+)</h2>
                (?:\s*<p[^>]*>\((?P<creator>.+),\s*)?(?P<release_year>\d{4})?r   )r   r   r   F)groupfatal)NNNzhpBase\(\s*["\']([^"\']+)hp_basez|(?x)
                hpInjectVideo\([\'\"](?P<hp_inject_video>\w+)[\'\"],
                [\'\"](?P<hp_resolution>\d+)[\'\"]hp_inject_videohp_resolution)r   _z.mp4Refererr   )r   )r   r   r   http_headersr   r   r   )	_match_id_download_webpage_search_regex_html_search_regex_html_search_metar   )
selfr   video_idwebpager   r   r   r   r   r   s
             T/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/harpodeon.py_real_extractHarpodeonIE._real_extract+   s    >>#&((7'+'9'9Q W$H (: ( (/
 / 	% ))*FQZ[)-););6 &/@/.R	 *< *T& Y/qtD&,11-PU1V'5
 	
     N)__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSr+   __static_attributes__r.   r-   r*   r   r      s    WJY155A5 
	 \15A5 
 O1(A. 
/"FH
r-   r   N)commonr   utilsr   r   r.   r-   r*   <module>r8      s    ! A
- A
r-   