
    V|h                     J    S SK Jr  SSKJrJrJrJrJrJrJ	r	   " S S\5      r
g)   )InfoExtractor   )ExtractorErrorget_element_by_classint_or_noneremove_startstrip_or_noneunified_strdateurlencode_postdatac            
       L    \ rS rSrSrSSSSSSS	S
SS.S.SSS.SSS./rS rSrg)ScreencastOMaticIE   zZhttps?://screencast-o-matic\.com/(?:(?:watch|player)/|embed\?.*?\bsc=)(?P<id>[0-9a-zA-Z]+)z.http://screencast-o-matic.com/watch/c2lD3BeOPl 483583cb80d92588f15ccbedd90f0c18
c2lD3BeOPlmp4z!Welcome to 3-4 Philosophy @ DECV!zre:^https?://.*\.jpg$zYas the title says! also: some general info re 1) VCE philosophy and 2) distance learning.iq  20141216)idexttitle	thumbnaildescriptiondurationupload_date)urlmd5	info_dictz/http://screencast-o-matic.com/player/c2lD3BeOPlT)r   only_matchingzIhttp://screencast-o-matic.com/embed?ff=true&sc=cbV2r4Q5TL&fromPH=true&a=1c                    U R                  U5      nU R                  SU-   U5      nU R                  U5      S:X  d  SU;   a  U R                  S5      nU(       d
  [	        SSS9eU R                  SUS	S
S9nU R                  U5      nUR                  SU05        U R                  SUS[        U5      S9nSU;   a
  [	        SSS9eU R                  XU5      S   nUR                  U[        SU5      [        [        SU5      5      =(       d    S [        U R                  SUSS S95      [        [        [        SU5      S5      5      S.5        U$ )Nz&https://screencast-o-matic.com/player/zProtected Contentz-This video is private and requires a passwordvideopasswordz9Password protected video, use --video-password <password>T)expectedz$(?is)<form[^>]*>(?P<form>.+?)</form>z
login formform)group
scPasswordz.https://screencast-o-matic.com/player/passwordz
Logging in)dataz3<small class="text-danger">Invalid password</small>z!Unable to login: Invalid password    overlayTitleoverlayDescriptionz>player\.duration\s*=\s*function\(\)\s*{\s*return\s+(\d+);\s*};r   )defaultoverlayPublishedzPublished: )r   r   r   r   r   )	_match_id_download_webpage_html_extract_title	get_paramr   _search_regex_hidden_inputsupdater   _parse_html5_media_entriesr   r	   r   r
   r   )selfr   video_idwebpagepasswordr!   	form_datainfos           [/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/screencastomatic.py_real_extract ScreencastOMaticIE._real_extract#   s   >>#&((4x?K $$W-1DDBgM~~o6H$%`kopp%%7,V\ & ^D++D1Ih  ,,@(L'	2 - 4G EO$%HSWXX..sXFqI).'B()=>RT[)\]eae#D$6$6QT %7 %3 4 +<$%7A=,R S	
 		      N)__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSr9   __static_attributes__r<   r;   r8   r   r      sT    nJ?181v%
 A [F(%r;   r   N)commonr   utilsr   r   r   r   r	   r
   r   r   r<   r;   r8   <module>rF      s#    !  ; ;r;   