
    V|h(                     6    S SK Jr  SSKJrJr   " S S\5      rg)   )InfoExtractor   )
js_to_jsonmerge_dictsc                   D    \ rS rSrSrSSSSSSS	S
SSS.	SS0S./rS rSrg)NewsyIE   z7https?://(?:www\.)?newsy\.com/stories/(?P<id>[^/?#$&]+)zIhttps://www.newsy.com/stories/nft-trend-leads-to-fraudulent-art-auctions/609d65125b086c24fb529312mp4z&NFT Art Auctions Have A Piracy Problemz$md5:971e52ab8bc97e50305475cde8284c83z*nft-trend-leads-to-fraudulent-art-auctionsi@`i. z;https://cdn.newsy.com/images/videos/x/1620927824_xyrrP4.jpg20210518)	idexttitledescription
display_id	timestampduration	thumbnailupload_dateskip_downloadT)url	info_dictparamsc                    U R                  U5      nU R                  X5      nU R                  U R                  SUS5      U[        5      nU R                  X2SS9n/ 0 pvUR                  S5      (       a9  U R                  US   U5      u  pUR                  U5        U R                  Xy5      n[        UUS   UUR                  S5      UR                  S5      UR                  S	5      UUS
.5      $ )Nz$data-video-player\s?=\s?"({[^"]+})">dataF)fatalstreamr   headliner   image)r   r   r   r   r   formats	subtitles)	_match_id_download_webpage_parse_json_html_search_regexr   _search_json_ldget#_extract_m3u8_formats_and_subtitlesextend_merge_subtitlesr   )
selfr   r   webpage	data_jsonld_jsonr    r!   fmtssubss
             P/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/newsy.py_real_extractNewsyIE._real_extract   s    ^^C(
((9$$T%<%<3Wf&FGQS]_	&&w%&H==""AA)HBUWabJDNN4 --i>I7D/$]]:.!j1"w/"%
  	     N)__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSr2   __static_attributes__r5   r4   r1   r   r      sH    KJ [,=AF#V%

 #D) F r4   r   N)commonr   utilsr   r   r   r5   r4   r1   <module>r?      s    !'m 'r4   