From 18bf5ede1dc6c22a6ca69f1d23d12b4171c26496 Mon Sep 17 00:00:00 2001 From: girst Date: Wed, 5 Jan 2022 23:05:00 +0100 Subject: [PATCH] get_video_info: bail out if no stream url is found this was triggered relatively often by the websub-webhook (who doesn't need the url anyways). --- app/common/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/common.py b/app/common/common.py index 7df63b3..08ac805 100644 --- a/app/common/common.py +++ b/app/common/common.py @@ -282,7 +282,7 @@ def get_video_info(video_id, *, metaOnly=False, _embed=True): try: url = sorted(formats, key=lambda k: k['height'], reverse=True)[0]['url'] except: - url = None + return None, None, metadata, 'no-url', player_error # ip-locked videos can be recovered if the proxy module is loaded: is_geolocked = 'gcr' in parse_qs(urlparse(url).query) -- 2.39.3