From 16c5044a80833522393e7ecfd0119544904301e3 Mon Sep 17 00:00:00 2001 From: eliranwong Date: Wed, 6 Sep 2023 17:12:52 +0100 Subject: [PATCH] v34.93; fixed Youtube-downloader gui --- UniqueBibleAppVersion.txt | 2 +- gui/Worker.py | 8 ++++---- latest_changes.txt | 3 +++ patches.txt | 8 ++++---- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/UniqueBibleAppVersion.txt b/UniqueBibleAppVersion.txt index 9eaa64c1d..b998a62e2 100755 --- a/UniqueBibleAppVersion.txt +++ b/UniqueBibleAppVersion.txt @@ -1 +1 @@ -34.92 +34.93 diff --git a/gui/Worker.py b/gui/Worker.py index 517ae7ddd..e4ecdfbf7 100644 --- a/gui/Worker.py +++ b/gui/Worker.py @@ -159,7 +159,7 @@ def __init__(self, parent): self.parent = parent self.threadpool = QThreadPool() - def getResponse(self, prompt): + def getResponse(self, prompt, progress_callback=None): try: #https://platform.openai.com/docs/guides/images/introduction response = openai.Image.create( @@ -198,7 +198,7 @@ def __init__(self, parent): self.parent = parent self.threadpool = QThreadPool() - def playVideo(self, videoFilePath, speed): + def playVideo(self, videoFilePath, speed, progress_callback=None): VlcUtil.playMediaFile(videoFilePath, speed) return "Next ..." @@ -225,7 +225,7 @@ def __init__(self, parent): self.parent = parent self.threadpool = QThreadPool() - def downloadYouTubeFile(self, downloadCommand, youTubeLink, outputFolder): + def downloadYouTubeFile(self, downloadCommand, youTubeLink, outputFolder, progress_callback=None): try: if platform.system() == "Windows": os.system(r"cd .\{2}\ & {0} {1}".format(downloadCommand, youTubeLink, outputFolder)) @@ -258,7 +258,7 @@ def __init__(self, parent): self.parent = parent self.threadpool = QThreadPool() - def pydubFile(self): + def pydubFile(self, progress_callback=None): # vlc gui for video only config.isMediaPlaying = True # Load audio file diff --git a/latest_changes.txt b/latest_changes.txt index 95b9b8b40..87cd8db47 100755 --- a/latest_changes.txt +++ b/latest_changes.txt @@ -1,3 +1,6 @@ +Changes in 34.93: +* fixed Youtube-downloader gui + Changes in 34.92: * added support of gpt-3.5-turbo-16k to Bible Chat plugin diff --git a/patches.txt b/patches.txt index 8bb7a83d9..407142718 100755 --- a/patches.txt +++ b/patches.txt @@ -1345,7 +1345,6 @@ (34.69, "file", "util/ConfigUtil.py") (34.70, "file", "util/ASVparagraphs.py") (34.71, "file", "util/AGBparagraphs.py") -(34.74, "file", "gui/Worker.py") (34.78, "folder", "llama_index") (34.78, "file", "llama_index/Readme.md") (34.79, "folder", "llama_index/KJV_md_index") @@ -1388,6 +1387,7 @@ (34.91, "file", "db/ToolsSqlite.py") (34.91, "file", "util/RemoteApiHandler.py") (34.92, "file", "plugins/menu/Bible Chat.py") -(34.92, "file", "latest_changes.txt") -(34.92, "file", "UniqueBibleAppVersion.txt") -(34.92, "file", "patches.txt") +(34.93, "file", "gui/Worker.py") +(34.93, "file", "latest_changes.txt") +(34.93, "file", "UniqueBibleAppVersion.txt") +(34.93, "file", "patches.txt")