From 96cc1276e8ccd527c7a09ee7b511dcb57e9230cb Mon Sep 17 00:00:00 2001 From: girst Date: Wed, 5 Jan 2022 22:35:19 +0100 Subject: [PATCH] ignore useless info message search result happens when searching for a youtube url, e.g. /search?q=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dxxxxxxxxxxx --- app/common/innertube.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/common/innertube.py b/app/common/innertube.py index adc75ee..15c33ca 100644 --- a/app/common/innertube.py +++ b/app/common/innertube.py @@ -214,6 +214,8 @@ def parse_result_items(items): pass elif key == 'webAnswerRenderer': # "Result from the web" pass + elif key == 'infoPanelContentRenderer': # "These results may be new or changing quickly" + pass elif key == 'didYouMeanRenderer' or key == 'showingResultsForRenderer': extras.append({ 'type': 'spelling', -- 2.39.3