feat: launch programm
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Hazel 2024-05-28 13:45:08 +02:00
parent d4fe99ffc7
commit 4b2dd4a36a
2 changed files with 4 additions and 3 deletions

2
.vscode/launch.json vendored
View File

@ -22,7 +22,7 @@
"name": "Python Debugger: Music Kraken", "name": "Python Debugger: Music Kraken",
"type": "debugpy", "type": "debugpy",
"request": "launch", // run the module "request": "launch", // run the module
"module": "music_kraken", "program": "${workspaceFolder}/.vscode/run_script.py",
} }
] ]
} }

View File

@ -88,12 +88,13 @@ class CliDownloader:
output() output()
def print_current_options(self): def print_current_options(self):
self.page_dict = dict()
print() print()
print(self.current_results.pprint()) print(self.current_results.pprint())
""" """
self.page_dict = dict()
page_count = 0 page_count = 0
for option in self.current_results.formatted_generator(): for option in self.current_results.formatted_generator():
if isinstance(option, ResultOption): if isinstance(option, ResultOption):
@ -324,7 +325,7 @@ class CliDownloader:
return False return False
if do_download: if do_download:
self.download(selected_objects) self.download(list(o.value for o in selected_objects))
return False return False
if len(selected_objects) != 1: if len(selected_objects) != 1: