Dynamically find soundcloud client ID

This commit is contained in:
Nathan Thomas 2021-09-16 18:48:11 -07:00
parent 61079a6c7b
commit 1f3b24e5b7
3 changed files with 76 additions and 38 deletions

View file

@ -188,7 +188,11 @@ class Config:
if source == "deezer":
return {"arl": self.file["deezer"]["arl"]}
if source == "soundcloud":
return {}
soundcloud = self.file["soundcloud"]
return {
"client_id": soundcloud["client_id"],
"app_version": soundcloud["app_version"],
}
raise InvalidSourceError(source)