Skip to content

Commit

Permalink
fix: remove accidental cache enablement
Browse files Browse the repository at this point in the history
We should discuss before we enable this - it works though, created the cache and rate limit dbs and successfully wrote to them :)
  • Loading branch information
iPromKnight authored and Gaisberg committed Nov 4, 2024
1 parent 78f76b9 commit 877ffec
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/program/services/downloaders/realdebrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,8 @@ class RealDebridAPI:

def __init__(self, api_key: str, proxy_url: Optional[str] = None):
self.api_key = api_key

rate_limit_params = get_rate_limit_params(per_minute=60, db_name="realdebrid_rate_limit")
cache_params = get_cache_params(cache_name="realdebrid_cache", expire_after=60)

self.session = create_service_session(
rate_limit_params=rate_limit_params,
use_cache=True,
cache_params=cache_params
)

rate_limit_params = get_rate_limit_params(per_minute=60)
self.session = create_service_session(rate_limit_params=rate_limit_params)
self.session.headers.update({"Authorization": f"Bearer {api_key}"})
if proxy_url:
self.session.proxies = {"http": proxy_url, "https": proxy_url}
Expand Down

0 comments on commit 877ffec

Please sign in to comment.