🩹 Small fix

This commit is contained in:
zhbaor 2023-03-05 00:26:02 +08:00
parent fe36735f37
commit 9192f61811
2 changed files with 3 additions and 2 deletions

View file

@ -38,7 +38,9 @@ def download():
@app.get("/path") @app.get("/path")
def get_path(): def get_path():
result = webview.active_window().create_file_dialog(dialog_type=webview.FOLDER_DIALOG) result = webview.active_window().create_file_dialog(
dialog_type=webview.FOLDER_DIALOG
)
if result: if result:
manager.path = result[0] manager.path = result[0]
return manager.path return manager.path

View file

@ -46,7 +46,6 @@ class Manager:
def download(self): def download(self):
parent_dir = Path(self.path) parent_dir = Path(self.path)
for video in self.video_list: for video in self.video_list:
print(video)
self.queue.put(video) self.queue.put(video)
Thread(target=self.download_worker, args=(parent_dir,)).start() Thread(target=self.download_worker, args=(parent_dir,)).start()