cleaned up cli

This commit is contained in:
Hellow2
2023-04-05 10:12:02 +02:00
parent 0c8953ed67
commit ec621ddc1f
2 changed files with 11 additions and 6 deletions

View File

@@ -130,7 +130,7 @@ class Search(Download):
return True
def download_chosen(self, genre: str = None, **kwargs) -> DownloadResult:
def download_chosen(self, genre: str = None, download_all: bool = False, **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, genre=genre, **kwargs)
return page.download(music_object=self._current_option._derive_from, genre=genre, download_all=download_all, **kwargs)
return DownloadResult(error_message=f"Didn't find a source for {self._current_option._derive_from.option_string}.")