
    VGh	                     :    d dl mZ ddlmZmZmZ  G d de      Zy)   )InfoExtractor   )float_or_noneformat_fieldint_or_nonec                   <    e Zd ZdZdddddddd	d
ddeeeddZd Zy)ZhihuIEz3https?://(?:www\.)?zhihu\.com/zvideo/(?P<id>[0-9]+)z0https://www.zhihu.com/zvideo/1342930761977176064 c8d4c9cd72dd58e6f9bc9c2c842664641342930761977176064mp4u   写春联也太难了吧！zre:^https?://.*\.jpgu	   桥半舫i#`20210210 244ecb13b0fd7daf92235288c8ca3365g-Jb@)idexttitle	thumbnailuploader	timestampupload_dateuploader_idduration
view_count
like_countcomment_count)urlmd5	info_dictc                 n   | j                  |      }| j                  d|z   |      }|d   }|j                  d      xs i }g }|j                  d      xs i j                         D ]  \  }}|j                  d      xs |j                  d      }	|	s-|j	                  t        |j                  d            t        |j                  d            |t        |j                  d	            t        |j                  d
            t        |j                  d            |	t        |j                  d            d        |j                  d      xs i }
|
j                  d      }||||j                  d      xs |j                  d      |
j                  d      t        |j                  d            |
j                  d      t        |d d      t        |j                  d            t        |j                  d            t        |j                  d            t        |j                  d            dS )Nz%https://www.zhihu.com/api/v4/zvideos/r   videoplaylistr   play_urlsample_ratesizefpsheightbitratewidth)asrfilesize	format_idr$   r%   tbrr   r'   author	url_tokenr   	image_urlnamepublished_atr   zhttps://www.zhihu.com/people/%sr   
play_countliked_countr   )r   r   formatsr   r   r   r   uploader_urlr   r   r   r   )	_match_id_download_jsongetitemsappendr   r   r   )selfr   video_idzvideor   r   r3   r*   qr!   r,   r-   s               _/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/yt_dlp/extractor/zhihu.py_real_extractzZhihuIE._real_extract   s   >>#&$$3h>Jw

7#)r"YYz28b??A 	LIquuU|8quuZ'8HNN"155#78'f6&"155<0%aeeHo6$QUU9%56$QUU7^4	 			 H%+JJ{+	 ;/J6::k3J

6*$VZZ%?@!::d+(D:[\%eii
&;<%fjj&>?%fjj&?@(O)DE
 	
    N)__name__
__module____qualname__
_VALID_URLint_TESTr?    r@   r>   r	   r	      sB    GJA1'20##%= 
E&'
r@   r	   N)commonr   utilsr   r   r   r	   rG   r@   r>   <module>rJ      s    ! < <<
m <
r@   