🩹 Small fix
This commit is contained in:
parent
fe36735f37
commit
9192f61811
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue