From 4b2dd4a36a60dc9e0aa06f2d84df06cd6c91a4e1 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Tue, 28 May 2024 13:45:08 +0200 Subject: [PATCH] feat: launch programm --- .vscode/launch.json | 2 +- music_kraken/cli/main_downloader.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f864249..b245b1d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -22,7 +22,7 @@ "name": "Python Debugger: Music Kraken", "type": "debugpy", "request": "launch", // run the module - "module": "music_kraken", + "program": "${workspaceFolder}/.vscode/run_script.py", } ] } \ No newline at end of file diff --git a/music_kraken/cli/main_downloader.py b/music_kraken/cli/main_downloader.py index 6d11fa1..12d076e 100644 --- a/music_kraken/cli/main_downloader.py +++ b/music_kraken/cli/main_downloader.py @@ -88,12 +88,13 @@ class CliDownloader: output() def print_current_options(self): - self.page_dict = dict() print() print(self.current_results.pprint()) """ + self.page_dict = dict() + page_count = 0 for option in self.current_results.formatted_generator(): if isinstance(option, ResultOption): @@ -324,7 +325,7 @@ class CliDownloader: return False if do_download: - self.download(selected_objects) + self.download(list(o.value for o in selected_objects)) return False if len(selected_objects) != 1: