U
    g                     @   s@   d dl mZ d dlmZ ddlmZmZmZ G dd deZdS )   )InfoExtractor)VimeoIE   )parse_qstraverse_objurl_or_nonec                   @   s   e Zd ZdZdZddddddd	d
dddgddidddddddddeddedgdddeeddd d!d"d#d$dd%d
d&d'ed(d)d&ddd%ed*dgd+d,gZd-d. Zd/S )0GermanupaIEzgermanupa.dez/https?://germanupa\.de/mediathek/(?P<id>[\w-]+)zThttps://germanupa.de/mediathek/4-figma-beratung-deine-sprechstunde-fuer-figma-fragenZ	909179246uB   Tutorial: #4 Figma Beratung - Deine Sprechstunde für Figma-FragenZmp4z
German UPAZ	germanupazohttps://i.vimeocdn.com/video/1792564420-7415283ccef8bf8702dab8c6b7515555ceeb7a1c11371ffcc133b8e887dbf70e-d_1280zhttps://vimeo.com/germanupai  )idtitleextuploaderuploader_id	thumbnailuploader_urldurationz$Failed to parse XML: not well-formedZskip_downloadZm3u8)url	info_dictexpected_warningsparamszaudio, uses GenericIEzxhttps://germanupa.de/mediathek/live-vom-ux-festival-neuigkeiten-von-figma-jobmarkt-agenturszene-interview-zu-sustainableZ
1867346676zaLive vom UX Festival: Neuigkeiten von Figma, Jobmarkt, Agenturszene & Interview zu Sustainable UXZopusi@ofZ20240709g/@z$md5:db2aed5ff131e177a7b33901e9a8db05ZSciencezall-rights-reservedz$https://soundcloud.com/user-80097677Z	471579486zChttps://i1.sndcdn.com/artworks-oCti2e9GhaZFWBqY-48ybGw-original.jpg)r	   r
   r   	timestampupload_dater   
like_countdescriptionr   Zrepost_countZgenreslicenser   r   Z
view_countcomment_countr   )noter   r   u$   Nur für Mitglieder/Just for memberszFhttps://germanupa.de/mediathek/ux-festival-2024-usability-tests-und-aiZ	986994430z;UX Festival 2024 "Usability Tests und AI" von Lennart WeberZ20240719ifzby-sazohttps://i.vimeocdn.com/video/1904187064-2a672630c30f9ad787bd390bff3f51d7506a3e8416763ba6dbf465732b165c5c-d_1280ib  )r	   r
   r   Zrelease_dater   r   r   r   r   r   Zrelease_timestampr   r   r   r   zlogin required)r   r   r   r   skipc                 C   s   |  |}| ||}t| jd|dd ddthddthf}|sh| jd|dd dr\| d	 | |d
S |dd}| t	
||t	|S )Nzc<iframe[^>]+data-src\s*?=\s*?([\'"])(?P<url>https://germanupa\.de/media/oembed\?url=(?:(?!\1).)+)\1zembedded videor   )defaultgroup    zE<div[^>]+class\s*?=\s*?([\'"])(?:(?!\1).)*login-wrapper(?:(?!\1).)*\1zlogin wrapper)r   z(This video is only available for membersGenericzhttps://vimeo.com/zhttps://player.vimeo.com/video/)Z	_match_idZ_download_webpager   Z_search_regexr   r   Zraise_login_requiredZ
url_resultreplacer   Z_smuggle_referrer)selfr   Zvideo_idZwebpageZ	param_urlZreal_url r#   >/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/germanupa.py_real_extractI   s.    
     
zGermanupaIE._real_extractN)__name__
__module____qualname__ZIE_DESCZ
_VALID_URLintZ_TESTSr%   r#   r#   r#   r$   r   
   sv   
<r   N)	commonr   Zvimeor   utilsr   r   r   r   r#   r#   r#   r$   <module>   s   