From 7cd5bc9e9f82d0dee496fb1f3d6b394c9cd9d16a Mon Sep 17 00:00:00 2001 From: Jackson Humphrey Date: Wed, 13 Nov 2024 16:54:58 -0600 Subject: [PATCH] Added a draft test for the URL reported in Issue #8689. This test fails for reasons I don't understand; I believe the correct extension should be 'mp4', but the current code reports an 'ext' of None. --- yt_dlp/extractor/ctvnews.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/yt_dlp/extractor/ctvnews.py b/yt_dlp/extractor/ctvnews.py index 383f5c6d75..57506c7d46 100644 --- a/yt_dlp/extractor/ctvnews.py +++ b/yt_dlp/extractor/ctvnews.py @@ -40,6 +40,14 @@ class CTVNewsIE(InfoExtractor): }, { 'url': 'http://vancouverisland.ctvnews.ca/video?clipId=761241', 'only_matching': True, + }, { + 'url': 'https://www.ctvnews.ca/business/respondents-to-bank-of-canada-questionnaire-largely-oppose-creating-a-digital-loonie-1.6665797', + 'info_dict': + { + 'id': '1.6665797', + 'ext': 'mp4', + }, + 'playlist_mincount': 1, }] def _real_extract(self, url):