Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stean202020/subtitle-translation-service
Subtitle Translation Service using Google translation and opensubtitles.org
https://github.com/stean202020/subtitle-translation-service
Last synced: about 1 month ago
JSON representation
Subtitle Translation Service using Google translation and opensubtitles.org
- Host: GitHub
- URL: https://github.com/stean202020/subtitle-translation-service
- Owner: stean202020
- License: gpl-3.0
- Created: 2023-12-31T04:08:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-31T05:27:05.000Z (about 1 year ago)
- Last Synced: 2024-11-12T06:13:28.829Z (about 2 months ago)
- Language: Python
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Subtitle-Translation-Service
Subtitle Translation Service using Google translation and opensubtitles.org# Work in progress
Required for Google script:
pip install google-cloud-translate googletrans pysubs2
Usage for Google script:
Replace path/to/your/credentials.json with the path to your Google Cloud credentials file.
Replace path/to/your/subtitle.srt with the path to your SRT file.
Set the target_language to the language you want to translate the subtitles into.
Run the script.Usage for Kodi script:
Replace placeholders: Update PLUGIN_ID and other constants with your plugin's details.
Implement plugin logic: Fill in the show_root_list, handle_listing, and play_item functions with your plugin's specific functionality.
Refer to Kodi documentation: Consult the official Kodi documentation for detailed usage of the Kodi API functions used in the stub.