implemented genre in the cli
This commit is contained in:
@@ -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}.")
|
||||
|
||||
|
Reference in New Issue
Block a user