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

Add option to change name of subtitles file #142

Open
Mrtenz opened this issue Nov 27, 2024 · 1 comment
Open

Add option to change name of subtitles file #142

Mrtenz opened this issue Nov 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Mrtenz
Copy link
Contributor

Mrtenz commented Nov 27, 2024

I'm having an issue similar to #131 where Plex doesn't detect the generated subtitles. It seems to be fixed by renaming it to just .en.srt. In addition, I'm using Bazarr but not with Subgen directly, as I mainly use the batch endpoint for generating subtitles (yes, weird set up, but I only need to generate subtitles for certain shows, which is not easy with Bazarr directly). Bazarr doesn't detect the .subgen.large-v3.en.srt files either, but does detect .en.srt files.

The problem with renaming the files manually is that the next time I run Subgen, it wouldn't detect the subtitles and generate them again. It would be nice if there was an option to change the name of the file to be just .[language].srt.

@McCloudS
Copy link
Owner

McCloudS commented Nov 27, 2024

The issue you linked provides a solution to fix plex not detecting them: #131 (comment)

I can think on a way to add comfortable renaming so Bazarr plays nicely. The simplest way right now is manually editing

subextension = f".subgen.{whisper_model.split('.')[0]}.{namesublang}.srt"

@McCloudS McCloudS added the enhancement New feature or request label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants