
    V|h'                     :    S SK Jr  SSKJrJrJr   " S S\5      rg)   )InfoExtractor   )determine_extint_or_nonemimetype2extc            
       :    \ rS rSrSrSSSSSSS	S
SS.S.rS rSrg)
TweakersIE	   z(https?://tweakers\.net/video/(?P<id>\d+)zNhttps://tweakers.net/video/9926/new-nintendo-3ds-xl-op-alle-fronten-beter.html fe73e417c093a788e0160c4025f88b159926mp4z+New Nintendo 3DS XL - Op alle fronten beterz$md5:3789b21fed9c0219e9bcaacd43fab280zre:^https?://.*\.jpe?g$i  s7JeEm)idexttitledescription	thumbnaildurationuploader_id)urlmd5	info_dictc           
         U R                  U5      nU R                  SU S3U5      S   S   nUS   n/ nUR                  S0 5      R                  S/ 5       H  nUR                  S5      n[        UR                  S	5      5      n[        UR                  S
5      5      n	UR                  S/ 5       H`  n
U
R                  S5      nU(       d  M  [	        U
R                  S5      5      =(       d    [        U5      nUR                  UUUU	US.5        Mb     M     UUUR                  S5      UR                  S5      [        UR                  S5      5      UR                  S5      US.$ )Nz&https://tweakers.net/video/s1playlist/z/1920/1080/playlist.jsonitems    r   	locationsprogressivelabelwidthheightsourcessrctype)	format_idr   r   r    r   r   posterr   account)r   r   r   r   r   r   formats)	_match_id_download_jsongetr   r   r   append)selfr   video_id
video_datar   r'   locationr$   r   r    source
source_urlr   s                S/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/tweakers.py_real_extractTweakersIE._real_extract   sX   >>#&((4XJ>VW "
 7#"{B7;;M2NH W-IW 56E h!78F",,y"5#ZZ.
!"6::f#56S-
:S!*%"$   6	 O$ %>>-8#1#JNN:$>?%>>)4
 	
     N)__name__
__module____qualname____firstlineno__
_VALID_URL_TESTr3   __static_attributes__r6   r5   r2   r	   r	   	   s3    <J_1BA3#
E"
r5   r	   N)commonr   utilsr   r   r   r	   r6   r5   r2   <module>r@      s    ! 2
 2
r5   