diff --git a/rip/cli.py b/rip/cli.py index 4a881dc..6552ea9 100644 --- a/rip/cli.py +++ b/rip/cli.py @@ -183,7 +183,7 @@ class DiscoverCommand(Command): "$ rip discover\n\n" "Browse the best-sellers list\n" "$ rip discover best-sellers\n\n" - "Available options for Qobuz list:\n\n" + "Available options for Qobuz list:\n\n" " • most-streamed\n" " • recent-releases\n" " • best-sellers\n" @@ -203,7 +203,7 @@ class DiscoverCommand(Command): "$ rip discover --source deezer\n\n" "Browse the Deezer charts\n" "$ rip discover --source deezer charts\n\n" - "Available options for Deezer list:\n\n" + "Available options for Deezer list:\n\n" " • releases\n" " • charts\n" " • selection\n" diff --git a/rip/core.py b/rip/core.py index c998412..aa4d1f3 100644 --- a/rip/core.py +++ b/rip/core.py @@ -26,6 +26,7 @@ from streamrip.clients import ( from streamrip.constants import MEDIA_TYPES from streamrip.exceptions import ( AuthenticationError, + IneligibleError, ItemExists, MissingCredentials, NonStreamable, @@ -653,7 +654,14 @@ class RipCore(list): logger.debug("searching for %s", query) client = self.get_client(source) + + if isinstance(client, DeezloaderClient) and media_type == "featured": + raise IneligibleError( + "Must have premium Deezer account to access editorial lists." + ) + results = client.search(query, media_type) + if media_type == "featured": media_type = "album" diff --git a/streamrip/clients.py b/streamrip/clients.py index 1637fc3..2f02440 100644 --- a/streamrip/clients.py +++ b/streamrip/clients.py @@ -501,7 +501,6 @@ class DeezerClient(Client): try: if media_type == "featured": if query: - print(query) search_function = getattr( self.client.api, f"get_editorial_{query}" ) diff --git a/streamrip/media.py b/streamrip/media.py index b73b673..8f95670 100644 --- a/streamrip/media.py +++ b/streamrip/media.py @@ -303,8 +303,6 @@ class Track(Media): url_id = self.id try: - print(url_id) - print(self.quality) dl_info = self.client.get_file_url(url_id, self.quality) except Exception as e: logger.debug(repr(e))