U
    g	                     @   s,   d dl mZ d dlmZ G dd deZdS )   )InfoExtractor)JWPlatformIEc                   @   sl   e Zd ZdZde dZdddddd	d
ddddddddddddddddddddgZdd ZdS )	SpiegelIEz7[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}zRhttps?://(?:www\.)?(?:spiegel|manager-magazin)\.de(?:/[^/]+)+/[^/]*-(?P<id>[0-9]+|z))(?:-embed|-iframe)?(?:\.html)?(?:$|[#?])z\http://www.spiegel.de/video/vulkan-tungurahua-in-ecuador-ist-wieder-aktiv-video-1259285.htmlZ 50c7948883ec85a3e431a0a44b7ad1d6ZII0BUyxYZ1259285Zmp4zJVulkan Tungurahua in Ecuador ist wieder aktiv - DER SPIEGEL - Wissenschaftz$md5:8029d8310232196eb235d27575a8b9f4g      H@Z20130311i=Q)id
display_idexttitledescriptiondurationZupload_date	timestamp)urlmd5Z	info_dictzYhttp://www.spiegel.de/video/schach-wm-videoanalyse-des-fuenften-spiels-video-1309159.htmlT)r   Zonly_matchingz_https://www.spiegel.de/video/eifel-zoo-aufregung-um-ausgebrochene-raubtiere-video-99018031.htmlzhttps://www.spiegel.de/panorama/urteile-im-goldmuenzenprozess-haftstrafen-fuer-clanmitglieder-a-aae8df48-43c1-4c61-867d-23f0a2d254b7zjhttp://www.spiegel.de/video/spiegel-tv-magazin-ueber-guellekrise-in-schleswig-holstein-video-99012776.htmlzdhttp://www.spiegel.de/sport/sonst/badminton-wm-die-randsportart-soll-populaerer-werden-a-987092.htmlc                 C   sN   |  |}| ||}| jd|ddd}d||d| | j|d dt dS )	Nz@(&#34;|["\'])mediaId\1\s*:\s*(&#34;|["\'])(?P<id>(?:(?!\2).)+)\2zmedia idr   )groupZurl_transparentzjwplatform:)default)_typer   r   r   r   ie_key)Z	_match_idZ_download_webpageZ_html_search_regexZ_og_search_titler   r   )selfr   Zvideo_idZwebpageZmedia_id r   </tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/spiegel.py_real_extract&   s    
  zSpiegelIE._real_extractN)__name__
__module____qualname__Z_UUID_REZ
_VALID_URLZ_TESTSr   r   r   r   r   r      s>   r   N)commonr   Z
jwplatformr   r   r   r   r   r   <module>   s   