[cleanup] Fix minor mistakes (#17083)

Authored by: doe1080
This commit is contained in:
doe1080
2026-06-29 23:08:40 +00:00
committed by GitHub
parent 500e54cf86
commit b0472c3bce
22 changed files with 34 additions and 36 deletions
+1 -6
View File
@@ -107,11 +107,6 @@ class PeriscopeIE(PeriscopeBaseIE):
width = int_or_none(broadcast.get('width'))
height = int_or_none(broadcast.get('height'))
def add_width_and_height(f):
for key, val in (('width', width), ('height', height)):
if not f.get(key):
f[key] = val
video_urls = set()
formats = []
for format_id in ('replay', 'rtmp', 'hls', 'https_hls', 'lhls', 'lhlsweb'):
@@ -128,7 +123,7 @@ class PeriscopeIE(PeriscopeBaseIE):
'url': video_url,
'ext': 'flv' if format_id == 'rtmp' else 'mp4',
}
self._add_width_and_height(rtmp_format)
self._add_width_and_height(rtmp_format, width, height)
formats.append(rtmp_format)
info['formats'] = formats