Browse Source

py-yt-dlp-gui: Add check if key 'height' in 'format' dict

master
Sergey Kiselev 1 year ago
parent
commit
778ada691d
  1. 2
      py-yt-dlp-gui

2
py-yt-dlp-gui

@ -137,7 +137,7 @@ class wnd(Gtk.Window):
h = []
for f in info['formats']:
if isinstance(f['height'], int) and f['height'] not in h:
if ('height' in f) and isinstance(f['height'], int) and f['height'] not in h:
h.append(f['height'])
self.controls['resolution']['e'].append_text(
"{}p".format(f['height']))

Loading…
Cancel
Save