Skip to content

Commit

Permalink
v34.93; fixed Youtube-downloader gui
Browse files Browse the repository at this point in the history
  • Loading branch information
eliranwong committed Sep 6, 2023
1 parent 034aefb commit 16c5044
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion UniqueBibleAppVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
34.92
34.93
8 changes: 4 additions & 4 deletions gui/Worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 ..."

Expand All @@ -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))
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions latest_changes.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 4 additions & 4 deletions patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")

0 comments on commit 16c5044

Please sign in to comment.