
    VGh                     .    d dl Z ddlmZ  G d de      Zy)    N   )InfoExtractorc            
       j    e Zd ZdZdZddddddd	d
dddiddddddddd
dddidddddddgZd Zy)CloserToTruthIEFzAhttps?://(?:www\.)?closertotruth\.com/(?:[^/]+/)*(?P<id>[^/?#&]+)zJhttp://closertotruth.com/series/solutions-the-mind-body-problem#video-3688
0_zof1ktrezsolutions-the-mind-body-problemmovz#Solutions to the Mind-Body Problem?20140221igSCTTXML)id
display_idexttitleupload_date	timestampuploader_idskip_downloadT)url	info_dictparamsz4http://closertotruth.com/episodes/how-do-brains-work
0_iuxai6g6zhow-do-brains-workzHow do Brains Work?ixSz(http://closertotruth.com/interviews/17251725z	AyaFr-002)r   r      )r   r   playlist_mincountc           	      "   | j                  |      }| j                  ||      }| j                  d|d      }| j                  |d      }| j                  d|dd       }|rt	               }g }t        j                  d|      D ]T  }	|	j                  d      }
|
|v r|j                  |
       |j                  d	d
| d|
 d|	j                  d      d       V |r| j                  |||      S | j                  d|dd      }
d	|d
| d|
 d|dS )Nz0<script[^>]+src=["\'].*?\b(?:partner_id|p)/(\d+)zkaltura partner_idzvideo titlez7(?s)<select[^>]+id="select-version"[^>]*>(.+?)</select>zselect version)defaultzL<option[^>]+value=(["\'])(?P<id>[0-9a-z_]+)(?:#.+?)?\1[^>]*>(?P<title>[^<]+)r   url_transparentzkaltura::Kalturar   )_typer   ie_keyr   zM<a[^>]+id=(["\'])embed-kaltura\1[^>]+data-kaltura=(["\'])(?P<id>[0-9a-z_]+)\2zkaltura entry_id)group)r   r   r   r    r   )	_match_id_download_webpage_search_regex_html_extract_titlesetrefinditerr!   addappendplaylist_result)selfr   r   webpage
partner_idr   select	entry_idsentriesmobjentry_ids              g/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/yt_dlp/extractor/closertotruth.py_real_extractzCloserToTruthIE._real_extract.   sZ   ^^C(
((j9''?)+
 ((-@##F%t $ 5 IGc   ::d+y(h'.%j\8*='!ZZ0	   ++GZGG%%\'t & 5
 '$j\8*5
 	
    N)__name__
__module____qualname___WORKING
_VALID_URL_TESTSr5    r6   r4   r   r      s    HUJ[;:%##
 T
 F.*%##
 T
 : 
 9#FJ+
r6   r   )r'   commonr   r   r=   r6   r4   <module>r?      s    	 !S
m S
r6   