Skip to content

Commit d9a474b

Browse files
committed
Fix gtransv2 options check
1 parent a7791ca commit d9a474b

File tree

7 files changed

+12
-13
lines changed

7 files changed

+12
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ when the option is not given at the command line.
727727
"(arg_num)" means if the option is given,
728728
the number of the arguments is required.
729729
Author: Bing Ling
730-
Email: agermanidis@gmail.com
730+
Email: binglinggroup@outlook.com
731731
Bug report: https://github.com/BingLingGroup/autosub
732732
```
733733

@@ -790,7 +790,7 @@ Bugs and suggestions can be reported at [issues](https://github.com/BingLingGrou
790790

791791
I only write the scripts for building standalone executable files on windows, [Nuitka script](scripts/nuitka_build.bat) and [pyinstaller script](scripts/pyinstaller_build.bat).
792792

793-
The version after 0.5.4a doesn't support Nuitka build since 0.5.4a import google.cloud package and it contains `pkg_resources.get_distribution` which is not supported by Nuitka due to this [Nuitka issue #146](https://github.com/Nuitka/Nuitka/issues/146). You can manually remove the codes include the google.cloud package and build it. I will consider remove the codes to support Nuitka build in the future version.
793+
The version after 0.5.4a doesn't support Nuitka build since 0.5.4a import google.cloud package and it contains `pkg_resources.get_distribution` which is not supported by Nuitka due to this [Nuitka issue #146](https://github.com/Nuitka/Nuitka/issues/146). You can manually remove the codes include the google.cloud package and build it. I will consider removing the codes to support Nuitka build in the future version.
794794

795795
Nuitka build is pretty tricky. These environments I tried and worked.
796796

autosub/cmdline_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def validate_aovp_args(args): # pylint: disable=too-many-branches, too-many-ret
252252
Check that the commandline arguments passed to autosub are valid
253253
for audio or video processing.
254254
"""
255-
if args.sleep_seconds < 0 or args.lines_per_trans < 0:
255+
if args.sleep_seconds < 0:
256256
raise exceptions.AutosubException(
257257
_("Error: \"-slp\"/\"--sleep-seconds\" arg is illegal."))
258258

autosub/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
# when using external speech region control
6464

6565
DEFAULT_DST_LANGUAGE = 'en-US'
66-
DEFAULT_LINES_PER_TRANS = 15
6766
DEFAULT_SIZE_PER_TRANS = 4000
6867
DEFAULT_SLEEP_SECONDS = 5
6968

33 Bytes
Binary file not shown.

autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2020-02-02 11:17+0800\n"
11-
"PO-Revision-Date: 2020-02-02 11:19+0800\n"
10+
"POT-Creation-Date: 2020-02-02 16:25+0800\n"
11+
"PO-Revision-Date: 2020-02-02 16:25+0800\n"
1212
"Last-Translator: \n"
1313
"Language-Team: \n"
1414
"MIME-Version: 1.0\n"
@@ -620,8 +620,8 @@ msgstr ""
620620
#: autosub/options.py:554
621621
msgid ""
622622
"List all recommended \"-S\"/\"--speech-language\" Google Speech-to-Text "
623-
"language codes. If no arg is given, list all. Or else will list get a group "
624-
"of \"good match\" of the arg. Default \"good match\" standard is whose match "
623+
"language codes. If no arg is given, list all. Or else will list a group of "
624+
"\"good match\" of the arg. Default \"good match\" standard is whose match "
625625
"score above 90 (score between 0 and 100). Ref: https://tools.ietf.org/html/"
626626
"bcp47 https://github.com/LuminosoInsight/langcodes/blob/master/langcodes/"
627627
"__init__.py lang code example: language-script-region-variant-extension-"
@@ -638,8 +638,8 @@ msgstr ""
638638
#: autosub/options.py:570
639639
msgid ""
640640
"List all available \"-SRC\"/\"--src-language\" py-googletrans translation "
641-
"language codes. Or else will list get a group of \"good match\" of the arg. "
642-
"Same docs above. (arg_num = 0 or 1)"
641+
"language codes. Or else will list a group of \"good match\" of the arg. Same "
642+
"docs above. (arg_num = 0 or 1)"
643643
msgstr ""
644644
"列出所有可用的\"-SRC\"/\"--src-language\"也就是py-googletrans可用的翻译用的语"
645645
"言代码。否则会给出一个“好的匹配”的清单。同样的参考文档如上。(参数个数为0或"

autosub/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def get_cmd_args(): # pylint: disable=too-many-statements
554554
help=_("List all recommended \"-S\"/\"--speech-language\" "
555555
"Google Speech-to-Text language codes. "
556556
"If no arg is given, list all. "
557-
"Or else will list get a group of \"good match\" "
557+
"Or else will list a group of \"good match\" "
558558
"of the arg. Default \"good match\" standard is whose "
559559
"match score above 90 (score between 0 and 100). "
560560
"Ref: https://tools.ietf.org/html/bcp47 "
@@ -569,7 +569,7 @@ def get_cmd_args(): # pylint: disable=too-many-statements
569569
nargs='?',
570570
help=_("List all available \"-SRC\"/\"--src-language\" "
571571
"py-googletrans translation language codes. "
572-
"Or else will list get a group of \"good match\" "
572+
"Or else will list a group of \"good match\" "
573573
"of the arg. "
574574
"Same docs above. "
575575
"(arg_num = 0 or 1)"))

docs/README.zh-Hans.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ Auditok的选项:
654654
"参数个数"指的是如果提供了选项,
655655
该选项所需要的参数个数。
656656
作者: Bing Ling
657-
Email: agermanidis@gmail.com
657+
Email: binglinggroup@outlook.com
658658
问题反馈: https://github.com/agermanidis/autosub
659659
```
660660

0 commit comments

Comments
 (0)