U
    gd                     @   sp   d dl mZ G dd deZG dd deZG dd deZG dd	 d	eZG d
d deZG dd deZdS )   )MTVServicesInfoExtractorc                   @   sH   e Zd ZdZdZdZdddddd	d
dddddddgZdd ZdS )SouthParkIEzsouthpark.cc.comzhttps?://(?:www\.)?(?P<url>southpark(?:\.cc|studios)\.com/((?:video-)?clips|(?:full-)?episodes|collections)/(?P<id>.+?)(\?|#|$))z;http://feeds.mtvnservices.com/od/feed/intl-mrss-player-feedzShttps://southpark.cc.com/video-clips/d7wr06/south-park-you-all-agreed-to-counselingmp4zYou All Agreed to CounselingzKenny, Cartman, Stan, and Kyle visit Mr. Mackey and ask for his help getting Mrs. Nelson to come back. Mr. Mackey reveals the only way to get things back to normal is to get the teachers vaccinated.iPRH`Z20210310)exttitledescription	timestampZupload_dateurl	info_dictz8http://southpark.cc.com/collections/7758/fan-favorites/1Tr
   Zonly_matchingz]https://www.southparkstudios.com/episodes/h4o269/south-park-stunning-and-brave-season-19-ep-1c                 C   s   dddd|dS )Nzintl.mtvi.comzshared.southpark.globalZ90877963)ZaccountOverrideZarcEpepZimageEpZmgid selfurir   r   >/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/southpark.py_get_feed_query   s    zSouthParkIE._get_feed_queryN)__name__
__module____qualname__IE_NAME
_VALID_URL	_FEED_URL_TESTSr   r   r   r   r   r      s&   
r   c                   @   s.   e Zd ZdZdZdZddddddd	gZd
S )SouthParkEsIEu   southpark.cc.com:españolzOhttps?://(?:www\.)?(?P<url>southpark\.cc\.com/es/episodios/(?P<id>.+?)(\?|#|$))eszhttp://southpark.cc.com/es/episodios/s01e01-cartman-consigue-una-sonda-anal#source=351c1323-0b96-402d-a8b9-40d01b2e9bde&position=1&sort=!airdatezCartman Consigue Una Sonda Analr   r      zGeo-restricted)r
   r   Zplaylist_countskipN)r   r   r   r   r   Z_LANGr   r   r   r   r   r   %   s   r   c                   @   s   e Zd ZdZ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dddddd
dddgZdddZdd ZdS ) SouthParkDeIEzsouthpark.dezhttps?://(?:www\.)?(?P<url>southpark\.de/(?:(en/(videoclip|collections|episodes|video-clips))|(videoclip|collections|folgen))/(?P<id>(?P<unique_id>.+?)/.+?)(?:\?|#|$))zRhttps://www.southpark.de/videoclip/rsribv/south-park-rueckzug-zum-gummibonbon-waldTr   zMhttps://www.southpark.de/folgen/jiru42/south-park-verkabelung-staffel-23-ep-9zGhttps://www.southpark.de/collections/zzno5a/south-park-good-eats/7q26gpzMhttps://www.southpark.de/en/video-clips/ct46op/south-park-tooth-fairy-cartman$e99d45ea-ed00-11e0-aca6-0026b9414f30r   Tooth Fairy Cartman$md5:db02e23818b4dc9cb5f0c5a7e8833a68idr   r   r   r	   zZhttps://www.southpark.de/en/episodes/yy0vjs/south-park-the-pandemic-special-season-24-ep-1$f5fbd823-04bc-11eb-9b1b-0e40cf2fc285
South Park$md5:ae0d875eff169dcbed16b21531857ac1zDhttps://www.southpark.de/videoclip/ct46op/south-park-zahnfee-cartmanzZahnfee Cartmanz$md5:b917eec991d388811d911fd1377671aczQhttps://www.southpark.de/folgen/242csn/south-park-her-mit-dem-hirn-staffel-1-ep-7z$607115f3-496f-40c3-8647-2b0bcff486c0zXmd5:South Park | Pink Eye | E 0107 | HDSS0107X deu | Version: 634312 | Comedy Central S1)r%   r   r   Nc                 C   s0   |  |}| d| d| |}| |d S Nz;http://media.mtvnservices.com/pmt/e1/access/index.html?uri=z&configtype=edge&ref=ZfeedWithQueryParamsZ_id_from_uriZ_download_jsonZ_remove_template_parameterr   r   r
   Zvideo_idconfigr   r   r   _get_feed_urlf   s    
 zSouthParkDeIE._get_feed_urlc                 C   s   d S Nr   r   r   r   r   r   l   s    zSouthParkDeIE._get_feed_query)Nr   r   r   r   r   r   r-   r   r   r   r   r   r    5   sR   .
r    c                
   @   sf   e Zd ZdZ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gZdddZdd ZdS )SouthParkLatIEzsouthpark.latzhhttps?://(?:www\.)?southpark\.lat/(?:en/)?(?:video-?clips?|collections|episod(?:e|io)s)/(?P<id>[^/?#&]+)zNhttps://www.southpark.lat/en/video-clips/ct46op/south-park-tooth-fairy-cartmanTr   zShttps://www.southpark.lat/episodios/9h0qbg/south-park-orgia-gatuna-temporada-3-ep-7zLhttps://www.southpark.lat/en/collections/29ve08/south-park-heating-up/lydbrcr!   r   r"   r#   r$   r	   r&   r'   r(   Nc                 C   s0   |  |}| d| d| |}| |d S r)   r*   r+   r   r   r   r-      s    
zSouthParkLatIE._get_feed_urlc                 C   s   d S r.   r   r   r   r   r   r      s    zSouthParkLatIE._get_feed_query)Nr/   r   r   r   r   r0   p   s8   
r0   c                   @   s,   e Zd ZdZdZdZdddddd	gZd
S )SouthParkNlIEzsouthpark.nlzfhttps?://(?:www\.)?(?P<url>southpark\.nl/(?:clips|(?:full-)?episodes|collections)/(?P<id>.+?)(\?|#|$))z0http://www.southpark.nl/feeds/video-player/mrss/z?http://www.southpark.nl/full-episodes/s18e06-freemium-isnt-freezFreemium Isn't Freez=Stan is addicted to the new Terrance and Phillip mobile game.r      r
   r   Zplaylist_mincountNr   r   r   r   r   r   r   r   r   r   r   r1      s   r1   c                   @   s<   e Zd ZdZdZdZdddddd	d
dddddgZdS )SouthParkDkIEzsouthparkstudios.dkzohttps?://(?:www\.)?(?P<url>southparkstudios\.(?:dk|nu)/(?:clips|full-episodes|collections)/(?P<id>.+?)(\?|#|$))z7http://www.southparkstudios.dk/feeds/video-player/mrss/zFhttp://www.southparkstudios.dk/full-episodes/s18e07-grounded-vindaloopzGrounded Vindaloopz6Butters is convinced he's living in a virtual reality.r   r2   r3   zDhttp://www.southparkstudios.dk/collections/2476/superhero-showdown/1Tr   zDhttp://www.southparkstudios.nu/collections/2476/superhero-showdown/1Nr4   r   r   r   r   r5      s    r5   N)Zmtvr   r   r   r    r0   r1   r5   r   r   r   r   <module>   s   !;+