
    V|h                     B    S SK Jr  S SKJr  SSKJrJr   " S S\5      rg)   )BrightcoveNewIE)InfoExtractor   )ExtractorErrortraverse_objc                       \ rS rSrSrSrSrSSSS.S	S
SSSSSSSSSS.
0/S.SSSS.S	0 SS_SS_SS_S\_SS _S!S"_S#S$_S%S&_S'S(_S)S*_S+S(_S,S$_S-\_S.S/_S0S1_S2\_S3S4/_S5S6S7S8S9S:.E0/S.S;S<S=S.S>S?.S@S8SA./rSBr	SC r
SDrgE)FOneNewsNZIE   1Newsz1news.co.nz article videoszEhttps?://(?:www\.)?(?:1|one)news\.co\.nz/\d+/\d+/\d+/(?P<id>[^/?#&]+)z\https://www.1news.co.nz/2022/09/29/cows-painted-green-on-parliament-lawn-in-climate-protest/z8cows-painted-green-on-parliament-lawn-in-climate-protestz:'Cows' painted green on Parliament lawn in climate protest)idtitle	info_dict6312993358112zMActivists dressed as cows painted green outside Parliament in climate protestmp4zcount:6963482464001i4c20220929gA`"C@zre:^https?://.*\.jpg$zUGreenpeace accused the Government of "greenwashing" instead of taking climate action.)
r   r   exttagsuploader_id	timestampupload_dateduration	thumbnaildescription)urlr   playlistzNhttps://www.1news.co.nz/2022/09/30/now-is-the-time-to-care-about-womens-rugby/z*now-is-the-time-to-care-about-womens-rugbyz+Now is the time to care about women's rugbyr   s4wEB9neTfUr   u4   Why I love women’s rugby: Black Fern Ruahei Demantr   channel_follower_countchannel_urlz8https://www.youtube.com/channel/UC2BQ3U9IxoYIJyulv0bN5PQr   zcount:12uploaderzRe: Newsr   20211215r   UC2BQ3U9IxoYIJyulv0bN5PQuploader_urlz7http://www.youtube.com/channel/UC2BQ3U9IxoYIJyulv0bN5PQ
channel_idchannel
like_countr   z4https://i.ytimg.com/vi/s4wEB9neTfU/maxresdefault.jpg	age_limit    
view_count
categoriesSports   z$md5:8874410e5740ed1d8fd0df839f849813publicTnot_live)r   r   availabilityplayable_in_embedlive_statusz^https://www.1news.co.nz/2022/09/29/raw-videos-capture-hurricane-ians-fury-as-it-slams-florida/z:raw-videos-capture-hurricane-ians-fury-as-it-slams-floridaz;Raw videos capture Hurricane Ian's fury as it slams Floridar   )r   r   playlist_mincountz^https://www.onenews.co.nz/2022/09/29/cows-painted-green-on-parliament-lawn-in-climate-protest/)r   only_matchingzHhttp://players.brightcove.net/%s/0xpHIR6IB_default/index.html?videoId=%sc                    U R                  U5      nU R                  X5      nU R                  SUSU5      n/ n[        US5      =(       d    /  H  n[        US5      nUS:X  aa  [        US5      nU R                  [        US5      =(       d    S[        US	5      4-  n	UR                  U R                  U	[        5      5        Mv  US
:X  d  M~  [        USS5      n
U
(       d  M  UR                  U R                  U
SS95        M     U(       d
  [        SSS9e[        US5      =(       d    U R                  SU5      nU R                  XRU5      $ )NzFusion\.globalContent\s*=zfusion metadatacontent_elementssubtypevideo)embedconfigbrightcoveAccountr   brightcoveVideoIdyoutube)referentr   )
raw_oembed_idYoutube)iez#This article does not have a video.T)expected)	headlinesbasic )	_match_id_download_webpage_search_jsonr   BRIGHTCOVE_URL_TEMPLATEappend
url_resultr   r   _generic_titleplaylist_result)selfr   
display_idwebpagefusion_metadataentriesitem	item_typebrightcove_configbrightcove_urlvideo_id_or_urlplaylist_titles               T/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/onenewsnz.py_real_extractOneNewsNZIE._real_extractO   sM   ^^C(
((9++,H'Sdfpq 2DEKKD$T95IG#$07J$K!!%!=!= !24GHZN !24GHA " t~OPi'".t5GI^"_"?NN4???y?#QR L  !FQUVV *@A 0""2w/ 	 ##GHH     N)__name__
__module____qualname____firstlineno__IE_NAMEIE_DESC
_VALID_URLint_TESTSrI   rZ   __static_attributes__r]   r\   rY   r	   r	      s   G*GYJ rPW
 )l %#1!+#- &!9#z 	
, dBG
  -S 5 -c	
 "#] J 
 ": "#= #$] !"< z !#  !W    !#!" !8*#$ !$#I$,)-#-- !
F tRW "#
 t!
}AFF iIr\   r	   N)
brightcover   commonr   utilsr   r   r	   r]   r\   rY   <module>rk      s    ' ! 0eI- eIr\   