1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-01-18 23:03:05 +01:00

Fix formats potentially being unbound

This commit is contained in:
sepro 2025-01-15 19:22:17 +01:00
parent 6b883f9d8c
commit e96d15b3ae

View file

@ -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: