Skip to content

Commit

Permalink
Refactor debrid service attribute names in settings.py and get_debrid…
Browse files Browse the repository at this point in the history
…_service.py
  • Loading branch information
LimeDrive committed Nov 1, 2024
1 parent 9cbfd91 commit 951fced
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions stream_fusion/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion stream_fusion/web/root/search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 951fced

Please sign in to comment.