From 6370e1126b877dc55edf9f6275bbb6d9e56feb13 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Sun, 14 Mar 2021 16:50:23 +0100 Subject: [PATCH] YT: check if decipher produced result --- src/youtube.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/youtube.js b/src/youtube.js index 6abf8ab7..1c1b49a1 100644 --- a/src/youtube.js +++ b/src/youtube.js @@ -388,6 +388,7 @@ var YouTubeClient = GObject.registerClass({ const sig = gstUri.get_query_value(queryKeys.sig); const key = YTDL.sig.decipher(cipher, actions); + if(!key) return null; debug('stream deciphered');