From 95b243f7e5cdcfd6bc7ce38d339374ec91dd0933 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 7 Jul 2023 21:19:25 +0200 Subject: [PATCH] disable streamlink for python --- backend/stream_providers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/stream_providers.py b/backend/stream_providers.py index f0eb779..d83c094 100755 --- a/backend/stream_providers.py +++ b/backend/stream_providers.py @@ -393,7 +393,8 @@ async def get_any(upstream, proxy, logger): if isinstance(cached, StreamData): return cached tasks = [] - tasks.append(asyncio.create_task(get_streamlink(upstream, proxy, logger))) + if not "youtube" in upstream.lower(): + tasks.append(asyncio.create_task(get_streamlink(upstream, proxy, logger))) tasks.append(asyncio.create_task(get_ytdl(upstream, proxy, logger))) tasks.append(asyncio.create_task(get_meta(upstream, proxy, logger)))