From e96d15b3ae0b84d871414ec59c633779060470e6 Mon Sep 17 00:00:00 2001 From: sepro Date: Wed, 15 Jan 2025 19:22:17 +0100 Subject: [PATCH] Fix formats potentially being unbound --- yt_dlp/extractor/senategov.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yt_dlp/extractor/senategov.py b/yt_dlp/extractor/senategov.py index 2a4466a97..3cd8643c9 100644 --- a/yt_dlp/extractor/senategov.py +++ b/yt_dlp/extractor/senategov.py @@ -52,6 +52,7 @@ class SenateBaseIE(InfoExtractor): f'https://www-senate-gov-msl3archive.akamaized.net/{msl3}/{filename}_1/master.m3u8', f'{stream_domain}/i/{filename}_1@{stream_num}/master.m3u8', f'{stream_domain}/i/{filename}.mp4/master.m3u8'] + formats = None for video_url in urls_alternatives: formats = self._extract_m3u8_formats(video_url, video_id, ext='mp4', fatal=False) if formats: