
    VGh                     >    d dl mZ d dlmZ ddlmZ  G d de      Zy)   )InfoExtractor)JWPlatformIE   )make_archive_idc                   r    e Zd ZdZdddddddd	d
g ddgd
ddidgddddddddddg ddgd
ddidgZd Zy)OneFootballIEzGhttps?://(?:www\.)?onefootball\.com/[a-z]{2}/video/[^/&?#]+-(?P<id>\d+)zLhttps://onefootball.com/en/video/highlights-fc-zuerich-3-3-fc-basel-34012334Y2VtcWATmp4u#   Highlights: FC Zürich 3-3 FC Baselz$md5:33d9855cb790702c4fe42a513700aba8z?https://cdn.jwplayer.com/v2/media/Y2VtcWAT/poster.jpg?width=720iOxa20211102g     pw@)FootballSoccerOneFootballzonefootball 34012334)
idexttitledescription	thumbnail	timestampupload_datedurationtags_old_archive_idsskip_downloadTz#Failed to download m3u8 information)url	info_dictparamsexpected_warningszYhttps://onefootball.com/en/video/klopp-fumes-at-var-decisions-in-west-ham-defeat-34041020leVJrMhoz/Klopp fumes at VAR decisions in West Ham defeatz$md5:9c50371095a01ad3f63311c73d8f51a5z?https://cdn.jwplayer.com/v2/media/leVJrMho/poster.jpg?width=720i`0a20211107g     @W@zonefootball 34041020)r   r   r   c                    | j                  |      }| j                  ||      }| j                  ||d      }|j                  dd        | j	                  d|d      } | j
                  |t        |fdt        | |      gi|ddiS )	NF)fatalr   z0(https://cdn\.jwplayer\.com/manifests/\w+\.m3u8)m3u8_urlr   url_transparentT)	_match_id_download_webpage_search_json_ldpop_html_search_regex
url_resultr   r   )selfr   video_idwebpage	data_jsonr"   s         e/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/yt_dlp/extractor/onefootball.py_real_extractzOneFootballIE._real_extract*   s    >>#&((h7(((%(H	eT"**+^`gisttlH/@OPTV^@_?`//)-/ 	/    N)__name__
__module____qualname__
_VALID_URL_TESTSr/    r0   r.   r   r      s    [J ^:AZ#%9!7 8
 #D)CD" kFAZ#%9!7 8
 #D)!FB	/r0   r   N)commonr   
jwplatformr   utilsr   r   r6   r0   r.   <module>r:      s    ! $ #-/M -/r0   