
    VGh                     &    d dl mZ  G d de      Zy)   )InfoExtractorc                   L    e Zd ZdZdddddddd	d
dddd
gdgddddddgZd Zy)CTVIEzAhttps?://(?:www\.)?ctv\.ca/(?P<id>(?:show|movie)s/[^/]+/[^/?#&]+)zFhttps://www.ctv.ca/shows/your-morning/wednesday-december-23-2020-s5e882102249flvzWednesday, December 23, 2020zre:^https?://.*\.jpg$z^Your Morning delivers original perspectives and unique insights into the headlines of the day.i`M_20201223zYour Morningz	2020-2021   X   z	Talk ShowgL7A +@)idexttitle	thumbnaildescription	timestampupload_dateseriesseasonseason_numberepisode_numbertags
categoriesduration)url	info_dictz[https://www.ctv.ca/movies/adam-sandlers-eight-crazy-nights/adam-sandlers-eight-crazy-nightsT)r   only_matchingc                     | j                  |      }| j                  d|dd|z  i      d   d   d   d   }|d	   }| j                  d
j                  |d   |      d|      S )Nz(https://www.ctv.ca/space-graphql/graphqlqueryz{
  resolvedPath(path: "/%s") {
    lastSegment {
      content {
        ... on AxisContent {
          axisId
          videoPlayerDestCode
        }
      }
    }
  }
})r   dataresolvedPathlastSegmentcontentaxisIdz9c9media:{}:{}videoPlayerDestCodeNineCNineMedia)	_match_id_download_json
url_resultformat)selfr   
display_idr!   video_ids        ]/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/yt_dlp/extractor/ctv.py_real_extractzCTVIE._real_extract   s    ^^C(
%%6
  K &   &' (56 7@A 8$##G,A$BHMh( 	(    N)__name__
__module____qualname__
_VALID_URL_TESTSr-    r.   r,   r   r      s]    UJW31{#%$! #$&- 
& m%F.(r.   r   N)commonr   r   r4   r.   r,   <module>r6      s    !-(M -(r.   