mirror of https://github.com/devine-dl/devine.git
refactor(dl): Remove unused `get_profiles()` method
This commit is contained in:
parent
77976c7e74
commit
1adc551926
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue