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)Ú	YoutubeIEé   )Útraverse_objc                   @   sÎ   e Zd ZdZdddddddd	d
dddddeddgdeddddedœdœddddœddœddddœd dœd!d"dded#d$d%d&gd'd(d)d#d*eeg dd+dd,d
d*ed-œd.did/œd0dd1œd2dd1œd3dd1œgZd4d5„ Zd6S )7Ú	HolodexIEz»(?x)https?://(?:www\.|staging\.)?holodex\.net/(?:
            api/v2/playlist/(?P<playlist>\d+)|
            watch/(?P<id>[\w-]{11})(?:\?(?:[^#]+&)?playlist=(?P<playlist2>\d+))?
        )z%https://holodex.net/watch/9kQ2GtvDV3sZ be5ffce2f0feae8ba4c01553abc0f175Zmp4Z9kQ2GtvDV3suV   ã€ãŠã¡ã‚ƒã‚æ©Ÿèƒ½ã€‘ãƒ›ãƒ­ãƒ©ã‚¤ãƒ–ãŒå¹ã£åˆ‡ã‚ŒãŸã€24äººã§æ­Œã£ã¦ã¿ãŸã€‘ZUCJFZiqLMntJufDCHc6bQixgTzcount:43é    Znot_livez$md5:040e866c09dc4ab899b36479f4b7c7a2z8https://www.youtube.com/channel/UCJFZiqLMntJufDCHc6bQixgZ20200406z7http://www.youtube.com/channel/UCJFZiqLMntJufDCHc6bQixgu'   hololive ãƒ›ãƒ­ãƒ©ã‚¤ãƒ– - VTuber GroupZMusicÚpublicz:https://i.ytimg.com/vi_webp/9kQ2GtvDV3s/maxresdefault.webpi  )ÚextÚidÚtitleÚ
channel_idÚplayable_in_embedÚtagsÚ	age_limitÚlive_statusÚdescriptionÚchannel_urlÚupload_dateÚuploader_urlÚ
view_countÚchannelÚ
categoriesÚuploaderÚchannel_follower_countÚuploader_idÚavailabilityÚ	thumbnailÚdurationÚ
like_count)ÚurlÚmd5Ú	info_dictz'https://holodex.net/api/v2/playlist/239Z239zRSongs/Videos that made fall into the rabbit hole (from my google activity history))r
   r   é   )r   r!   Zplaylist_countz9https://holodex.net/watch/_m2mQyaofjI?foo=bar&playlist=69Z69u!   æ‹¿è‘—é‡‘æ–§é ­çš„è—é«®å¤§å§Šå§Šé   z1https://holodex.net/watch/_m2mQyaofjI?playlist=69Z_m2mQyaofjIu   Ernst / ã‚¨ãƒ³ã‚¹ãƒˆé   z7http://www.youtube.com/channel/UCqSX4PPZY0cyetqKVY_wRVAZEntertainmentu0   ã€æ˜Ÿè¡—ã™ã„ã›ã„ã€‘æ˜Ÿè¡—å‘ä½ ç»ä¸Šæ™šå®‰Z20210705z$md5:8b8ffb157bae77f2d109021a0b577d4aZUCqSX4PPZY0cyetqKVY_wRVAz8https://www.youtube.com/channel/UCqSX4PPZY0cyetqKVY_wRVAz:https://i.ytimg.com/vi_webp/_m2mQyaofjI/maxresdefault.webp)r
   r	   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Zcomment_countZ
noplaylist)r   r!   Úparamsz/https://staging.holodex.net/api/v2/playlist/125)r   Zonly_matchingz9https://staging.holodex.net/watch/rJJTJA_T_b0?playlist=25z-https://staging.holodex.net/watch/s1ifBeukThgc                 C   sp   |   |¡ ddd¡\}}}|p |}|  ||¡s@|  d|› t¡S |  d|› |¡}| jt|dƒ|| d¡tdS )	Nr
   ZplaylistZ	playlist2z https://www.youtube.com/watch?v=z$https://holodex.net/api/v2/playlist/)Zvideos.r
   Úname)Zie)	Z_match_valid_urlÚgroupZ_yes_playlistZ
url_resultr   Z_download_jsonZplaylist_from_matchesr   Úget)Úselfr   Zvideo_idZplaylist_idZpl_id2Údata© r+   ú</tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/holodex.pyÚ_real_extract[   s       ÿzHolodexIE._real_extractN)Ú__name__Ú
__module__Ú__qualname__Z
_VALID_URLÚintZ_TESTSr-   r+   r+   r+   r,   r      sš   êýþúþúéåþþþµPr   N)Úcommonr   Zyoutuber   Úutilsr   r   r+   r+   r+   r,   Ú<module>   s   