mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-23 11:37:08 -04:00
Throw an error when there is no item_id provided to get_downloadable (#547)
Fixes #546
This commit is contained in:
parent
577d914e93
commit
1271df5ca7
1 changed files with 4 additions and 0 deletions
|
@ -137,6 +137,10 @@ class DeezerClient(Client):
|
|||
quality: int = 2,
|
||||
is_retry: bool = False,
|
||||
) -> DeezerDownloadable:
|
||||
if item_id is None:
|
||||
raise NonStreamableError(
|
||||
"No item id provided. This can happen when searching for fallback songs.",
|
||||
)
|
||||
# TODO: optimize such that all of the ids are requested at once
|
||||
dl_info: dict = {"quality": quality, "id": item_id}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue