From 78e5974a92d25e2624fb083c1357869af90f67fb Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 5 Feb 2022 01:59:37 +0100 Subject: [PATCH] fix None if not found --- backend/stream.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/stream.py b/backend/stream.py index c387b96..f338b25 100755 --- a/backend/stream.py +++ b/backend/stream.py @@ -117,6 +117,8 @@ class MainHandler(tornado.web.RequestHandler): provider_data = await stream_providers.get_any( handler.upstream, handler.proxy, logger ) + if provider_data is None: + return (None, None, None) video_info = {} if handler.direct: