From 778ada691ddbc34064689b976d17477267f39ded Mon Sep 17 00:00:00 2001 From: Sergey Kiselev Date: Wed, 2 Jul 2025 15:24:46 +0500 Subject: [PATCH] py-yt-dlp-gui: Add check if key 'height' in 'format' dict --- py-yt-dlp-gui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-yt-dlp-gui b/py-yt-dlp-gui index 15608a8..c5199cf 100755 --- a/py-yt-dlp-gui +++ b/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']))