Closed Kaiyiccc closed 3 years ago
Duplicate of #127
This problem has been resolved, git pull to update to 'dev' version.
Or you can try patch to autosub/core.py as a temporary quick resolution:
--- /Users/home/autosub/test1/lib/python3.8/site-packages/autosub/core.py 2020-11-05 16:51:38.116478895 +1100
+++ "/Users/home/autosub/test1/lib/python3.8/site-packages/autosub/core.py" 2020-11-05 16:52:30.469815115 +1100
@@ -576,7 +576,7 @@
return None
translator = googletrans.Translator(
- user_agent=user_agent,
+ user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)',
service_urls=service_urls)
size = 0
Describe the bug
使用音频直接生成英文字幕正常。试着翻译生成的英文 srt 文件,出现以下报错: When trying to translate an srt file, I get the following error:
To Reproduce Steps to reproduce the behavior:
Ctrl-A
andCtrl-C
to copy all of them.Expected behavior
我也试着更改环境默认的 LANG 和 LC_ALL 至 en_US.UTF-8。但这似乎不是问题所在 I also tried setting the LANG and LC_ALL to en_US.UTF-8.
Environment (please complete the following information):
Additional context 坐标北美,应该没有网络问题 I am located in the US so internet access shouldn't be a problem.