From d9a474b0a8b642e8d3d07a7810d5f805fc9a476c Mon Sep 17 00:00:00 2001 From: BingLingGroup <42505588+BingLingGroup@users.noreply.github.com> Date: Sun, 2 Feb 2020 18:13:32 +0800 Subject: [PATCH] Fix gtransv2 options check --- README.md | 4 ++-- autosub/cmdline_utils.py | 2 +- autosub/constants.py | 1 - .../zh_CN/LC_MESSAGES/autosub.options.mo | Bin 22643 -> 22676 bytes .../zh_CN/LC_MESSAGES/autosub.options.po | 12 ++++++------ autosub/options.py | 4 ++-- docs/README.zh-Hans.md | 2 +- 7 files changed, 12 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e51917e2..6d04c14f 100644 --- a/README.md +++ b/README.md @@ -727,7 +727,7 @@ when the option is not given at the command line. "(arg_num)" means if the option is given, the number of the arguments is required. Author: Bing Ling -Email: agermanidis@gmail.com +Email: binglinggroup@outlook.com Bug report: https://github.com/BingLingGroup/autosub ``` @@ -790,7 +790,7 @@ Bugs and suggestions can be reported at [issues](https://github.com/BingLingGrou 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). -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. +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. Nuitka build is pretty tricky. These environments I tried and worked. diff --git a/autosub/cmdline_utils.py b/autosub/cmdline_utils.py index 96dcc3c8..c2f3baf6 100644 --- a/autosub/cmdline_utils.py +++ b/autosub/cmdline_utils.py @@ -252,7 +252,7 @@ def validate_aovp_args(args): # pylint: disable=too-many-branches, too-many-ret Check that the commandline arguments passed to autosub are valid for audio or video processing. """ - if args.sleep_seconds < 0 or args.lines_per_trans < 0: + if args.sleep_seconds < 0: raise exceptions.AutosubException( _("Error: \"-slp\"/\"--sleep-seconds\" arg is illegal.")) diff --git a/autosub/constants.py b/autosub/constants.py index b5b51fdf..91238dfb 100644 --- a/autosub/constants.py +++ b/autosub/constants.py @@ -63,7 +63,6 @@ # when using external speech region control DEFAULT_DST_LANGUAGE = 'en-US' -DEFAULT_LINES_PER_TRANS = 15 DEFAULT_SIZE_PER_TRANS = 4000 DEFAULT_SLEEP_SECONDS = 5 diff --git a/autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.mo b/autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.mo index b67d057dedb05bff9d4208d3c990f42f5fe214dc..08c8b4db73cbdc6cae7a3d257dcebdce74a5feb4 100644 GIT binary patch delta 1301 zcmZ|PT};h!9LMp`ADujwdFUj{LDU?l{+(1*C>7Gf35gj~sCgJk9v0S_n%T^SIb5;P z71O5LVKXfzX4sggxndsX#zmWr#pZ(d&;NgGYkU2^zu))w{eAzx|Nr#8*E-*4^^UT_ zJ(Aj|O39d!Abr6~d~QiuUde-+CLM*?BxyBvxIV*p;>79FCQQdI*og@vq)%w_e^ERY zOH%%o(oUQ~+>xTN$kAmcsHJ|a$G2z-=FOBQ;5noRUBNiKgE=(z1pA5q_@v#~KTBGN z^JYs7b=36|n*6&MWd6q-DS&CIVW;4F+Iz>u4!noObEOuv=1CW^6{8rRCQYKy13Zpz z(`gXb&6i%X-r$$UVfF%U3zwk>SE8A(cH>PrhPWZjU=)KrI2!l6aU1d$)Q)E31vG`a za4cR!voDHf-)(H7k^4w*O3!c}pawgL2eBQ?GNn`a5YJ+`(smNx;|C@}Sx#am_q3FP zH_&uClq(2GI?P$@%%91Z#&f=2 zGYFCR5ly09z|#>|6gmz3KoXU`)UgO(5m%x4c6`g6eT7&)LfTN|yrQny^2osTVm_2h-n9MFqq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