mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-19 17:55:23 -04:00
Add Deezer support for rip discover
This commit is contained in:
parent
87c6894386
commit
22d2a649ce
6 changed files with 70 additions and 19 deletions
|
@ -499,7 +499,19 @@ class DeezerClient(Client):
|
|||
"""
|
||||
# TODO: use limit parameter
|
||||
try:
|
||||
search_function = getattr(self.client.api, f"search_{media_type}")
|
||||
if media_type == "featured":
|
||||
if query:
|
||||
print(query)
|
||||
search_function = getattr(
|
||||
self.client.api, f"get_editorial_{query}"
|
||||
)
|
||||
else:
|
||||
search_function = self.client.api.get_editorial_releases
|
||||
|
||||
else:
|
||||
search_function = getattr(
|
||||
self.client.api, f"search_{media_type}"
|
||||
)
|
||||
except AttributeError:
|
||||
raise Exception
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue