
    V|h                     &    S SK Jr   " S S\5      rg)   )InfoExtractorc                   4    \ rS rSrSrSSSSSSS	.S
.rS rSrg)
CaltransIE   zAhttps?://(?:[^/]+\.)?ca\.gov/vm/loc/[^/]+/(?P<id>[a-z0-9_]+)\.htmz2https://cwwp2.dot.ca.gov/vm/loc/d3/hwy50at24th.htmhwy50at24thtsz#US-50 : Sacramento : Hwy 50 at 24this_livezGhttps://cwwp2.dot.ca.gov/data/d3/cctv/image/hwy50at24th/hwy50at24th.jpg)idexttitlelive_status	thumbnail)url	info_dictc                 8   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U R                  SUSSS9nU R                  S	US
SS9nU R                  SUSSS9nU R                  XSSS9n	UU SU 3SU	US.$ )Nz(<script[^<]+?([^<]+\.m3u8[^<]+)</script>zGlobal VarszroutePlace\s*=\s*"([^"]+)"zRoute PlaceF)fatalzlocationName\s*=\s*"([^"]+)"zLocation NamezposterURL\s*=\s*"([^"]+)"z
Poster UrlzvideoStreamURL\s*=\s*"([^"]+)"zVideo Stream URLr   T)livez : )r
   r   r	   formatsr   )	_match_id_download_webpage_search_regex_extract_m3u8_formats)
selfr   video_idwebpageglobal_varsroute_placelocation_name
poster_urlvideo_streamr   s
             S/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/caltrans.py_real_extractCaltransIE._real_extract   s    >>#&((7((7]$ (()FUbjo(p**+JKYhpu*v''(DkS_gl'm
))*K[Zlty)z,,\TPT,U #}C7#
 	
     N)__name__
__module____qualname____firstlineno__
_VALID_URL_TESTr"   __static_attributes__r%   r$   r!   r   r      s*    UJC:$b
	E
r$   r   N)commonr   r   r%   r$   r!   <module>r.      s    !!
 !
r$   