
    V|h                      :    S SK r SSKJr  SSKJr   " S S\5      rg)    N   )InfoExtractor   )extract_attributesc                   Z    \ rS rSrSrSSSSSSS	S
SS.S.SSSSSSSSSS.S/S./rS rSrg)BostonGlobeIE	   zG(?i)https?://(?:www\.)?bostonglobe\.com/.*/(?P<id>[^/]+)/\w+(?:\.html)?zhttp://www.bostonglobe.com/metro/2017/02/11/tree-finally-succumbs-disease-leaving-hole-neighborhood/h1b4lviqzMTIn9sVy8F3gP/story.html 0a62181079c85c2d2b618c9a738aedafzDA tree finally succumbs to disease, leaving a hole in a neighborhood5320421710001mp4zIt arrived as a sapling when the Back Bay was in its infancy, a spindly American elm tamped down into a square of dirt cut into the brick sidewalk of 1880s Marlborough Street, no higher than the first bay window of the new brownstone behind it.iX20170212	245991542)titleidextdescription	timestampupload_dateuploader_id)urlmd5	info_dictzhttps://www.bostonglobe.com/lifestyle/names/2017/02/17/does-ben-affleck-play-matt-damon-favorite-version-batman/ruqkc9VxKBYmh5txn1XhSI/story.html 582b40327089d5c0c949b3c54b13c24bz$Who Is Matt Damon's Favorite Batman?ZW1QCnlA6Qc20170217z$md5:3b3dccb9375867e0b4d527ed87d307cbz$The Late Late Show with James CordenTheLateLateShow)r   r   r   r   r   uploaderr   404)r   r   r   expected_warningsc                 r   U R                  U5      nU R                  X5      nU R                  US S9n/ n[        R                  " SU5       H  n[        U5      nUR                  S5      nUR                  S5      n	UR                  S5      n
UR                  S5      nU(       d  M[  U	(       d  Md  U
(       d  Mm  U(       d  Mv  UR                  SU	 SU
 S	U S
U 35        M     [        U5      S:X  a  U R                  US5      $ [        U5      S:X  a  U R                  US   S5      $ U R                  XRUSS9$ )N)defaultz(?i)(<video[^>]+>)zdata-brightcove-video-idzdata-accountzdata-playerz
data-embedzhttp://players.brightcove.net//_z/index.html?videoId=r   Genericr   BrightcoveNew)ie)	_match_id_download_webpage_og_search_titlerefindallr   getappendlen
url_resultplaylist_from_matches)selfr   page_idwebpage
page_titleentriesvideoattrsvideo_id
account_id	player_idembeds               V/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/bostonglobe.py_real_extractBostonGlobeIE._real_extract*   s+   ..%((6**7D*A
 ZZ 5w?E&u-Eyy!;<H>2J		-0IIIl+ExJJ994ZL)AeWThiqhrsu @ w<1??3	22\Q??71:??--g
-__     N)__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSr=   __static_attributes__r@   r?   r<   r   r   	   sn    [J [5_%  V')*	
 g5?#)EB0 #(	
F>`r?   r   )r*   commonr   utilsr   r   r@   r?   r<   <module>rJ      s    	 !
:`M :`r?   