
    V|h                     T    S SK Jr  S SKJr  SSKJr   " S S\5      r " S S\5      rg	)
   )InfoExtractor)ZypeIE   )traverse_objc                   F    \ rS rSrSrSSSSSSS	S
SSSSS	SS.S./rS rSrg)OfTVIE   z+https?://(?:www\.)?of\.tv/video/(?P<id>\w+)z,https://of.tv/video/627d7d95b353db0001dadd1a cb9cd5db3bb9ee0d32bfd7e373d6ef0a627d7d95b353db0001dadd1amp4zE1: Jacky vs Ericzre:^https?://.*\.jpg    z$md5:dd16e3e2a8d27d922e7a989f85986853 i  i}}b20220512zThis is Fire)idexttitle	thumbnailaverage_ratingdescription
display_idduration	timestampupload_date
view_countcreator)urlmd5	info_dictc                     U R                  U5      nU R                  X5      n[        [        R                  " U R
                  X5      5      nSUS'   U R                  SUS5      US'   U$ )Nurl_transparent_typez*<a[^>]+class=\"creator-name\"[^>]+>([^<]+)r   )	_match_id_download_webpagenextr   extract_from_webpage_downloader_search_regex)selfr   video_idwebpageinfos        O/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/oftv.py_real_extractOfTVIE._real_extract   sf    >>#&((7F//0@0@#OP)W,,-Z\cenoY     N__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSr-   __static_attributes__r0   r/   r,   r   r      sG    ?J=1,(0A#%%
 F&r/   r   c                   0    \ rS rSrSrSSSS0S./rS rS	rg
)OfTVPlaylistIE$   zDhttps?://(?:www\.)?of\.tv/creators/(?P<id>[a-zA-Z0-9-]+)/?(?:$|[?#])z$https://of.tv/creators/this-is-fire/   r   zthis-is-fire)r   playlist_countr   c                     U R                  U5      nU R                  X5      nU R                  SUSUSS9nU R                  [	        US5      U5      $ )Nzvar\s*remaining_videos\s*=zoftv playlistsz\[.+\])contains_pattern).discovery_url)r"   r#   _search_jsonplaylist_from_matchesr   )r(   r   playlist_idr*   
json_matchs        r,   r-   OfTVPlaylistIE._real_extract.   sg    nnS)((:&&)74Dkdm ' o
 ))%;<kK 	Kr/   r0   Nr1   r0   r/   r,   r:   r:   $   s)    XJ5.
 FKr/   r:   N)commonr   zyper   utilsr   r   r:   r0   r/   r,   <module>rI      s(    !   ] <K] Kr/   