From 1adc55192626596aae259f366c66e897d8e9ba90 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 4 Mar 2024 09:31:15 +0000 Subject: [PATCH] refactor(dl): Remove unused `get_profiles()` method --- devine/commands/dl.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index 9c55d07..c68dcc0 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -786,18 +786,6 @@ class dl: keys[str(title)][str(track)].update(drm.content_keys) export.write_text(jsonpickle.dumps(keys, indent=4), encoding="utf8") - @staticmethod - def get_profile(service: str) -> Optional[str]: - """Get profile for Service from config.""" - profile = config.profiles.get(service) - if profile is False: - return None # auth-less service if `false` in config - if not profile: - profile = config.profiles.get("default") - if not profile: - raise ValueError(f"No profile has been defined for '{service}' in the config.") - return profile - @staticmethod def get_cookie_path(service: str, profile: Optional[str]) -> Optional[Path]: """Get Service Cookie File Path for Profile."""