U
    gr                     @   s0   d dl mZ ddlmZmZ G dd deZdS )   )InfoExtractor   )ExtractorErrortraverse_objc                   @   sb   e Zd ZdZdddiddddd	d
eedgedddedddddddddd
digdgZdd ZdS )IsraelNationalNewsIEz;https?://(?:www\.)?israelnationalnews\.com/news/(?P<id>\d+)z.https://www.israelnationalnews.com/news/354520idZ354520	info_dictZjA84wQhVvg8zbEven CNN Host Is Shocked by How Bad Biden's Approval Ratings Have Gotten | DM CLIPS | Rubin ReportZmp4z$md5:b7325a3d00c7596337dc3ae37e32d35czThe Rubin ReportzNews & Politicsz'http://www.youtube.com/user/RubinReportZRubinReportpublic   z:https://i.ytimg.com/vi_webp/jA84wQhVvg8/maxresdefault.webpZnot_liveT    zcount:29ZUCJdKr0Bgd_5saZYqLCa9mngz8https://www.youtube.com/channel/UCJdKr0Bgd_5saZYqLCa9mngZ20220606)r   titleextdescriptionZchannelZchannel_follower_countZcomment_count
categoriesZ
like_countZuploader_urlZuploader_idZavailabilityZ
view_countdurationZ	thumbnailZlive_statusZplayable_in_embedZ	age_limittagsZ
channel_idZchannel_urlZupload_dateZuploader)urlr   Zplaylistc                 C   sF   |  |}| d| |}t|d}|s6tddd| j||ddS )NzChttps://www.israelnationalnews.com/Generic/NewAPI/Item?type=0&Item=)ZContent2.content.attrssrcz%This article does not have any videosT)expectedZYoutube)Zie)Z	_match_idZ_download_jsonr   r   Zplaylist_from_matches)selfr   Znews_article_idZarticle_jsonurls r   G/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/israelnationalnews.py_real_extract)   s    
 
z"IsraelNationalNewsIE._real_extractN)__name__
__module____qualname__Z
_VALID_URLintZ_TESTSr   r   r   r   r   r      sB    "r   N)commonr   utilsr   r   r   r   r   r   r   <module>   s   