Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix multiple issues #144

Merged
merged 8 commits into from
Oct 4, 2020
Merged

fix multiple issues #144

merged 8 commits into from
Oct 4, 2020

Conversation

jitingcn
Copy link

@jitingcn jitingcn commented Oct 1, 2020

This pull request should fix #142, close #137 and close #143

The major changes are:
ci: add ci script for automated testing, switch to GitHub Actions

fix(sub_utils.py): add missing separator and prevent blank input from being accepted

refactor: fix breaking changes in google-cloud-speech v2.0.0 (untest)

Please review and suggestions are welcome.

Add missing separator
Prevent blank input from being accepted
Migrate google-cloud-speech to 2.0.0 (breaking change by upstream)
Allow auditok v0.1.8 be used

https://github.com/googleapis/python-speech/blob/master/UPGRADING.md
fix permission and filename
disable youtube-dl progress bar
separate test job
@jitingcn jitingcn marked this pull request as ready for review October 1, 2020 20:22
@jitingcn
Copy link
Author

jitingcn commented Oct 1, 2020

with the option -der:

Translating text from "en" to "zh-cn".
Bilingual subtitles file created at "/home/runner/work/autosub/autosub/test.en&zh-cn.srt".
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.5/x64/bin/autosub", line 11, in <module>
    load_entry_point('autosub==0.5.7a0', 'console_scripts', 'autosub')()
  File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/autosub/__init__.py", line 159, in main
    cmdline_utils.audio_or_video_prcs(args,
  File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/autosub/cmdline_utils.py", line 1691, in audio_or_video_prcs
    sub_utils.pysubs2_ssa_event_add(
  File "/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/autosub/sub_utils.py", line 664, in pysubs2_ssa_event_add
    event.start = src_ssafile.events[i].start
IndexError: list index out of range
Error: Process completed with exit code 1.

@BingLingGroup
Copy link
Owner

Thanks for your pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants