
    V|h_
                     6    S SK Jr  SSKJrJr   " S S\5      rg)   )InfoExtractor   )int_or_none	qualitiesc                   l    \ rS rSrSrS/rSSSSSS	S
SSSS.	S.SSS./rSSSSSSS	S
SSS.	S./rS rSr	g)CrooksAndLiarsIE   zDhttps?://embed\.crooksandliars\.com/(?:embed|v)/(?P<id>[A-Za-z0-9]+)zn<(?:iframe[^>]+src|param[^>]+value)=(["\'])(?P<url>(?:https?:)?//embed\.crooksandliars\.com/(?:embed|v)/.+?)\1z/https://embed.crooksandliars.com/embed/8RUoRhRi8RUoRhRimp4zMFox & Friends Says Protecting Atheists From Discrimination Is Anti-Christian!z$md5:e1a46ad1650e3a5ec7196d432799127fz(re:https?://crooksandliars\.com/files/.+i U20150405Heather   )	idexttitledescription	thumbnail	timestampupload_dateuploaderduration)url	info_dictz1http://embed.crooksandliars.com/v/MTE3MjUtMzQ2MzAT)r   only_matchingzGhttps://crooksandliars.com/2015/04/fox-friends-says-protecting-atheists)	r   r   r   r   r   r   r   r   r   c                    U R                  U5      nU R                  SU 3U5      nU R                  SUSU5      n[        S5      nUS    Vs/ s H2  ofS   R	                  S5      (       d  M  US   US	   U" US	   5      S
.PM4     nnUUUS   UR                  S5      U R                  UR                  S5      5      [        UR                  S5      5      UR                  S5      [        UR                  S5      5      US.	$ s  snf )Nz&http://embed.crooksandliars.com/embed/zvar\s+manifest\s*=zmanifest JSON)webm_lowmp4_low	webm_highmp4_highflavorsmimezvideo/r   type)r   	format_idqualityr   r   postercreatedauthorr   )	r   r   r   r   r   r   r   r   formats)	_match_id_download_webpage_search_jsonr   
startswithget_proto_relative_urlr   )selfr   video_idwebpagemanifestr$   itemr(   s           Y/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/crooksandliars.py_real_extractCrooksAndLiarsIE._real_extract+   s!   >>#&((4XJ?K $$%:G_V^_LM y)	P *d&\-D-DX-N	
;ftF|,
 *	 	 P g&#<<611(,,x2HI$X\\)%<= X.#HLL$<=

 
	
Ps   D-D N)
__name__
__module____qualname____firstlineno__
_VALID_URL_EMBED_REGEX_TESTS_WEBPAGE_TESTSr5   __static_attributes__r7       r4   r   r      s    XJ F  GL@dAD#%!

 CF$ YdAD#%!

 N
rA   r   N)commonr   utilsr   r   r   r7   rA   r4   <module>rD      s    !=
} =
rA   