
    V|h                     6    S SK Jr  SSKJrJr   " S S\5      rg)   )InfoExtractor   )int_or_nonemerge_dictsc                   X    \ rS rSrSrSSSSS\S\\S	S
SSS\S.S.SSS.SSS./rS rSrg)AitubeKZVideoIE   zBhttps?://aitube\.kz/(?:video|embed/)\?(?:[^\?]+)?id=(?P<id>[\w-]+)zxhttps://aitube.kz/video?id=9291d29b-c038-49a1-ad42-3da2051d353c&playlistId=d55b1f5f-ef2a-4f23-b646-2a86275b86b7&season=1z$9291d29b-c038-49a1-ad42-3da2051d353cmp4g     @z$94962f73-013b-432c-8853-1bd78ca860fez	ASTANA TVu   Смотреть любимые сериалы и видео, поделиться видео и сериалами с друзьями и близкимиzihttps://cdn.static02.aitube.kz/kz.aitudala.aitube.staticaccess/files/ddf2a2ff-bee3-409b-b5f2-2a8202bba75b20221102ibcu*   Ангел хранитель 1 серия)idextduration
channel_id
like_countchannelcomment_count
view_countdescription	thumbnailupload_date	timestamptitlechannel_follower_count)url	info_dictz@https://aitube.kz/embed/?id=9291d29b-c038-49a1-ad42-3da2051d353cT)r   only_matchingzxhttps://aitube.kz/video?season=1&id=9291d29b-c038-49a1-ad42-3da2051d353c&playlistId=d55b1f5f-ef2a-4f23-b646-2a86275b86b7c                    U R                  U5      nU R                  X5      nU R                  X25      S   S   S   nU R                  X25      nU R	                  SU S3U5      u  pg[        UUR                  S5      =(       d    U R                  SS/U5      UR                  S	5      UUUR                  S
5      =(       d    [        U R                  SU5      5      UR                  S5      UR                  S5      UR                  S5      UR                  S5      UR                  S5      [        UR                  S5      5      S.U5      $ )Nprops	pageProps	videoInfozAhttps://api-http.aitube.kz/kz.aitudala.aitube.staticaccess/video/z/videor   namezog:titler   	viewCountzya:ovs:views_total	likeCountchannelTitle	channelIdcoverUrlcommentCountchannelSubscriberCount)r   r   r   formats	subtitlesr   r   r   r   r   r   r   )		_match_id_download_webpage_search_nextjs_data_search_json_ld#_extract_m3u8_formats_and_subtitlesr   get_html_search_metar   )selfr   video_idwebpagenextjs_datajson_ld_datar)   r*   s           Q/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/aitube.py_real_extractAitubeKZVideoIE._real_extract$   s?   >>#&((7..wA'J;WXcd++G>!EEOPXzY_`bjl  __W-f1G1GQ[H\^e1f&??=9"&??;7 a)$*@*@AUW^*_`%//+6"~6%//+6$4(__^<&1+//BZ2[&\
  	     N)	__name__
__module____qualname____firstlineno__
_VALID_URLint_TESTSr8   __static_attributes__r;   r:   r7   r   r      so    VJ J8@"  y E%#A&)
* R J/F:r:   r   N)commonr   utilsr   r   r   r;   r:   r7   <module>rF      s    ! ,7m 7r:   