
    VGhM                     .    d dl Z ddlmZ  G d de      Zy)    N   )InfoExtractorc                   .    e Zd ZdZdZddddddd	Zd
 Zy)AcademicEarthCourseIEz?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                    | j                  |      }| j                  ||      }| j                  d|d      }| j                  d|dd      }t        j                  d|      }|D cg c]  }| j                  |       }}d||||d	S c c}w )
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	            g/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/yt_dlp/extractor/academicearth.py_real_extractz#AcademicEarthCourseIE._real_extract   s    nnS)((k:''97GM--1]% . 1 zzQ 044!4??1%44  &
 	
 5s   &BN)__name__
__module____qualname__
_VALID_URLIE_NAME_TESTr        r   r   r      s1    SJ$GC"% K

 E
r'   r   )r   commonr   r   r&   r'   r   <module>r)      s    	 !!
M !
r'   