U
    $P‘f  ã                   @   s8   d dl mZ ddlmZ ddlmZ G dd„ deƒZdS )é    )Úunicode_literalsé   )ÚInfoExtractor)ÚInternetVideoArchiveIEc                   @   s.   e Zd ZdZdddddddœd	œZd
d„ ZdS )ÚRottenTomatoesIEzChttps?://(?:www\.)?rottentomatoes\.com/m/[^/]+/trailers/(?P<id>\d+)z>http://www.rottentomatoes.com/m/toy_story_3/trailers/11028566/Z11028566Zmp4zToy Story 3znFrom the creators of the beloved TOY STORY films, comes a story that will reunite the gang in a whole new way.zre:^https?://.*\.jpg$)ÚidÚextÚtitleÚdescriptionZ	thumbnail)ÚurlZ	info_dictc                 C   sB   |   |¡}|  ||¡}|  d|d¡}dd| t ¡ ||  |¡dœS )Nzpublishedid=(\d+)zinternet video archive idZurl_transparentzŠhttp://video.internetvideoarchive.net/player/6/configuration.ashx?domain=www.videodetective.com&customerid=69249&playerid=641&publishedid=)Ú_typer   Úie_keyr   r	   )Z	_match_idZ_download_webpageZ_search_regexr   r   Z_og_search_title)Úselfr   Zvideo_idZwebpageZiva_id© r   úG/tmp/pip-unpacked-wheel-7zdooeg3/youtube_dl/extractor/rottentomatoes.pyÚ_real_extract   s    
ûzRottenTomatoesIE._real_extractN)Ú__name__Ú
__module__Ú__qualname__Z
_VALID_URLZ_TESTr   r   r   r   r   r      s   ûþr   N)Ú
__future__r   Úcommonr   Zinternetvideoarchiver   r   r   r   r   r   Ú<module>   s   