implemented genre in the cli

This commit is contained in:
Hellow
2023-04-04 22:30:14 +02:00
parent d500057315
commit 62b0102020
2 changed files with 39 additions and 11 deletions

View File

@@ -130,7 +130,7 @@ class Search(Download):
return True
def download_chosen(self) -> DownloadResult:
def download_chosen(self, genre: str = None, **kwargs) -> DownloadResult:
if self._current_option._derive_from is None:
return DownloadResult(error_message="No option has been chosen yet.")
@@ -139,7 +139,7 @@ class Search(Download):
page = self._get_page_from_source(source=source)
if page in self.audio_pages:
return page.download(music_object=self._current_option._derive_from)
return page.download(music_object=self._current_option._derive_from, genre=None, **kwargs)
return DownloadResult(error_message=f"Didn't find a source for {self._current_option._derive_from.option_string}.")