mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-16 16:14:49 -04:00
More helpful description for WrongLicense error
This commit is contained in:
parent
6719676b6e
commit
237e0a232a
1 changed files with 8 additions and 1 deletions
|
@ -567,7 +567,14 @@ class DeezerClient(Client):
|
|||
}
|
||||
|
||||
token = track_info["TRACK_TOKEN"]
|
||||
url = self.client.get_track_url(token, format_str)
|
||||
try:
|
||||
url = self.client.get_track_url(token, format_str)
|
||||
except deezer.WrongLicence:
|
||||
raise NonStreamable(
|
||||
"The requested quality is not available with your subscription. "
|
||||
"Deezer HiFi is required for quality 2. Otherwise, the maximum "
|
||||
"quality allowed is 1."
|
||||
)
|
||||
|
||||
if url is None:
|
||||
url = self._get_encrypted_file_url(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue