refactor(dl): Remove unused `get_profiles()` method

This commit is contained in:
rlaphoenix 2024-03-04 09:31:15 +00:00
parent 77976c7e74
commit 1adc551926
1 changed files with 0 additions and 12 deletions

View File

@ -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."""