From 951fced32a1a722c4cf10a9b6ed7c536e2af7401 Mon Sep 17 00:00:00 2001 From: LimeDrive Date: Fri, 1 Nov 2024 00:59:59 +0000 Subject: [PATCH] Refactor debrid service attribute names in settings.py and get_debrid_service.py --- stream_fusion/settings.py | 6 +++--- stream_fusion/web/root/search/views.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stream_fusion/settings.py b/stream_fusion/settings.py index 7d37d91..d08748a 100644 --- a/stream_fusion/settings.py +++ b/stream_fusion/settings.py @@ -20,9 +20,9 @@ class LogLevel(str, enum.Enum): class DebridService(str, enum.Enum): """Possible debrid services.""" - RD = "RD" - AD = "AD" - TB = "TB" + RD = "Real-Debrid" + AD = "AllDebrid" + TB = "TorBox" class NoCacheVideoLanguages(str, enum.Enum): diff --git a/stream_fusion/web/root/search/views.py b/stream_fusion/web/root/search/views.py index 67af062..e1b7de2 100644 --- a/stream_fusion/web/root/search/views.py +++ b/stream_fusion/web/root/search/views.py @@ -316,7 +316,7 @@ def stream_processing(search_results, media, config): stream_list = stream_processing(search_results, media, config) streams = [Stream(**stream) for stream in stream_list] - await redis_cache.set(stream_cache_key(media), streams, expiration=3600) + await redis_cache.set(stream_cache_key(media), streams, expiration=1200) total_time = time.time() - start logger.info(f"Search: Request completed in {total_time:.2f} seconds") return SearchResponse(streams=streams)