Skip to content

Commit

Permalink
fix: bugs and update
Browse files Browse the repository at this point in the history
  • Loading branch information
jianchang512 committed May 11, 2024
1 parent ec84869 commit 5e00e52
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions videotrans/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-

VERSION="v1.73"
VERSION_NUM=110703
VERSION="v1.74"
VERSION_NUM=110704
2 changes: 1 addition & 1 deletion videotrans/box/win.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, parent=None):
self.initUI()
self.setWindowIcon(QIcon(f"{config.rootdir}/videotrans/styles/icon.ico"))
self.setWindowTitle(
f"pyVideoTrans{config.uilanglist['Video Toolbox']} {VERSION} pyvideotrans.com {' Q群 905857759 ' if config.defaulelang == 'zh' else ''}")
f"pyVideoTrans{config.uilanglist['Video Toolbox']} {VERSION} pyvideotrans.com {' Q群 933714380 ' if config.defaulelang == 'zh' else ''}")

def closeEvent(self, event):
if config.exit_soft:
Expand Down
1 change: 1 addition & 0 deletions videotrans/mainwin/secwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,7 @@ def check_start(self):
self.update_status('ing')
self.delete_process()
# return
config.settings=config.parse_init()
from videotrans.task.main_worker import Worker

self.main.task = Worker(parent=self.main, app_mode=self.main.app_mode, txt=txt)
Expand Down
2 changes: 1 addition & 1 deletion videotrans/mainwin/spwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, parent=None,width=1200,height=700):
self.current_rolelist = []
config.params['line_roles'] = {}
self.setWindowIcon(QIcon(f"{config.rootdir}/videotrans/styles/icon.ico"))
self.rawtitle = f"{config.transobj['softname']}{VERSION} pyvideotrans.com {' Q群 905857759 ' if config.defaulelang == 'zh' else ''}"
self.rawtitle = f"{config.transobj['softname']}{VERSION} pyvideotrans.com {' Q群 933714380 ' if config.defaulelang == 'zh' else ''}"
self.setWindowTitle(self.rawtitle)
# 检查窗口是否打开
self.initUI()
Expand Down
4 changes: 2 additions & 2 deletions videotrans/set.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
;Interface language text #############################
;默认界面跟随系统,也可以在此手动指定,zh=中文界面,en=英文界面
;Default interface follows the system, you can also specify it manually here, zh=Chinese interface, en=English interface.
lang = en
lang =

;##################视频质量############################
;Video quality ############################
;视频处理质量,0-51的整数,0=无损处理尺寸较大速度很慢,51=质量最低尺寸最小处理速度最快
;Video processing quality, integer 0-51, 0=lossless processing with large size is very slow, 51=lowest quality with smallest size is fastest processing speed
crf=13
; 采用 libx264 编码或 libx265编码,264兼容性更好,265压缩比更大清晰度更高
video_codec=265
video_codec=264

;#################模型名字列表#################################
;List of model names #################################
Expand Down
4 changes: 2 additions & 2 deletions videotrans/translator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ def run(*, translate_type=None, text_list=None, target_language_name=None, set_p
from videotrans.translator.tencent import trans
elif lower_translate_type == CHATGPT_NAME.lower():
from videotrans.translator.chatgpt import trans
# elif lower_translate_type == FREECHATGPT_NAME.lower():
# from videotrans.translator.freechatgpt import trans
#elif lower_translate_type == FREECHATGPT_NAME.lower():
# from videotrans.translator.freechatgpt import trans
elif lower_translate_type == GEMINI_NAME.lower():
from videotrans.translator.gemini import trans
elif lower_translate_type == AZUREGPT_NAME.lower():
Expand Down

0 comments on commit 5e00e52

Please sign in to comment.