U
    g                     @   s8   d dl mZ d dlmZ ddlmZ G dd deZdS )   )InfoExtractor)JWPlatformIE   )make_archive_idc                   @   sx   e Zd ZdZdddddddd	d
dddgdgd
ddidgdddddddddddddgdgd
ddidgZdd Zd S )!OneFootballIEzGhttps?://(?:www\.)?onefootball\.com/[a-z]{2}/video/[^/&?#]+-(?P<id>\d+)zLhttps://onefootball.com/en/video/highlights-fc-zuerich-3-3-fc-basel-34012334ZY2VtcWATZmp4u#   Highlights: FC Zürich 3-3 FC Baselz$md5:33d9855cb790702c4fe42a513700aba8z?https://cdn.jwplayer.com/v2/media/Y2VtcWAT/poster.jpg?width=720iOxaZ20211102g     pw@ZFootballZSoccerZOneFootballzonefootball 34012334)
idexttitledescriptionZ	thumbnail	timestampZupload_datedurationtags_old_archive_idsZskip_downloadTz#Failed to download m3u8 information)url	info_dictparamsZexpected_warningszYhttps://onefootball.com/en/video/klopp-fumes-at-var-decisions-in-west-ham-defeat-34041020ZleVJrMhoz/Klopp fumes at VAR decisions in West Ham defeatz$md5:9c50371095a01ad3f63311c73d8f51a5z?https://cdn.jwplayer.com/v2/media/leVJrMho/poster.jpg?width=720i`0aZ20211107g     @W@zonefootball 34041020)r   r   r   c                 C   sh   |  |}| ||}| j||dd}|dd  | 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   Zurl_transparentT)Z	_match_idZ_download_webpageZ_search_json_ldpopZ_html_search_regexZ
url_resultr   r   )selfr   Zvideo_idZwebpageZ	data_jsonr    r   @/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/onefootball.py_real_extract*   s     
  
zOneFootballIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLZ_TESTSr   r   r   r   r   r      s@   !r   N)commonr   Z
jwplatformr   utilsr   r   r   r   r   r   <module>   s   