
    V|h                     H    S SK Jr  SSKJr   " S S\5      r " S S\5      rg)	   )InfoExtractor   )url_or_nonec                   J    \ rS rSrSrSSSSSSS	.S
.SSSSSSS	.S
./rS rSrg)DeuxMIE   zDhttps?://(?:www\.)?2m\.ma/[^/]+/replay/single/(?P<id>([\w.]{1,24})+)z7https://2m.ma/fr/replay/single/6351d439b15e1a613b3debe8 5f761f04c9d686e553b685134dca5d326351d439b15e1a613b3debe8mp4z#Grand Angle : Jeudi 20 Octobre 2022Dre:^https?://2msoread-ww.amagi.tv/mediasfiles/videos/images/.*\.png$)idexttitle	thumbnailurlmd5	info_dictz7https://2m.ma/fr/replay/single/635c0aeab4eec832622356da ad6af2f5e4d5b2ad2194a84b6e890b4c635c0aeab4eec832622356daz+Journal  Amazigh : Vendredi 28 Octobre 2022c           	          U R                  U5      nU R                  SU 3U5      S   S   nUUR                  S5      US   UR                  S5      [        UR                  S5      5      S.$ )	Nzhttps://2m.ma/api/watchDetail/responseNewstitrer   descriptionimager   r   r   r   r   )	_match_id_download_jsongetr   )selfr   video_idvideos       P/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/deuxm.py_real_extractDeuxMIE._real_extract   s~    >>#&##,XJ7CCMOOUW YYw'< 99]3$UYYw%78
 	
     N__name__
__module____qualname____firstlineno__
_VALID_URL_TESTSr%   __static_attributes__r(   r'   r$   r   r      sQ    XJ I1,:`	
	 I1,B`	
	F(

r'   r   c            	       N    \ 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./rS rSrg)DeuxMNewsIE)   z<https?://(?:www\.)?2m\.ma/(?P<lang>\w+)/news/(?P<id>[^/#?]+)zdhttps://2m.ma/fr/news/Kan-Ya-Mkan-d%C3%A9poussi%C3%A8re-l-histoire-du-phare-du-Cap-Beddouza-20221028 43d5e693a53fa0b71e8a5204c7d4542a635c5d1233b83834e35b282er   u?   Kan Ya Mkan dépoussière l’histoire du phare du Cap Beddouzaz$md5:99dcf29b82f1d7f2a4acafed1d487527r   )r   r   r   r   r   r   zkhttps://2m.ma/fr/news/Interview-Casablanca-hors-des-sentiers-battus-avec-Abderrahim-KASSOU-Replay--20221017 7aca29f02230945ef635eb8290283c0c634d9e108b70d40bc51a844bzOInterview: Casablanca hors des sentiers battus avec Abderrahim KASSOU (Replay) z$md5:3b8e78111de9fcc6ef7f7dd6cff2430cc           	         U R                  U5      R                  SS5      u  p#U R                  SU SU 3U5      S   S   S   nUS   UR                  S5      US	   S   UR                  S
5      [	        UR                  S5      5      S.$ )Nr   langz%https://2m.ma/api/articlesByUrl?lang=z&url=/news/r   article    r   r   contentcoverr   )_match_valid_urlgroupr   r    r   )r!   r   article_namer9   r#   s        r$   r%   DeuxMNewsIE._real_extractB   s    !2237==dFK##3D6\NSUaccmooxzz{} +YYw'>!$ 99Y/$UYYw%78
 	
r'   r(   Nr)   r(   r'   r$   r2   r2   )   sW    PJ v1,aA`

 }1,fA`

F,

r'   r2   N)commonr   utilsr   r   r2   r(   r'   r$   <module>rD      s$    ! !
m !
H#
- #
r'   