
    V|hM                     .    S SK r SSKJr   " S S\5      rg)    N   )InfoExtractorc                   6    \ rS rSrSrSrSSSSS.S	S
.rS rSrg)AcademicEarthCourseIE   z?https?://(?:www\.)?academicearth\.org/playlists/(?P<id>[^?#/]+)zAcademicEarth:Coursez2http://academicearth.org/playlists/laws-of-nature/zlaws-of-naturezLaws of NaturezmIntroduce yourself to the laws of nature with these free online college lectures from Yale, Harvard, and MIT.)idtitledescription   )url	info_dictplaylist_countc                    U R                  U5      nU R                  X5      nU R                  SUS5      nU R                  SUSSS9n[        R                  " SU5      nU Vs/ s H  opR                  U5      PM     nnSUUUUS	.$ s  snf )
Nz*<h1 class="playlist-name"[^>]*?>(.*?)</h1>r	   z"<p class="excerpt"[^>]*?>(.*?)</p>r
   F)fatalzB<li class="lecture-preview">\s*?<a target="_blank" href="([^"]+)">playlist)_typer   r	   r
   entries)	_match_id_download_webpage_html_search_regexrefindall
url_result)	selfr   playlist_idwebpager	   r
   urlsur   s	            X/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/academicearth.py_real_extract#AcademicEarthCourseIE._real_extract   s    nnS)((:''97GM--1]% . 1 zzQ 044t!??1%t4  &
 	
 5s   #B N)	__name__
__module____qualname____firstlineno__
_VALID_URLIE_NAME_TESTr    __static_attributes__r"       r   r   r      s1    SJ$GC"% K

 E
r+   r   )r   commonr   r   r"   r+   r   <module>r-      s    	 !!
M !
r+   