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
Bazarr sometimes downloads subtitles too quickly before Sonarr can import external subtitle #1765
Comments
Have those imported subtitles also language tag in name? |
This issue have been reported 2 times in the last week. I'll see if I can add @TChilderhose @anonyme123 would that help fix your similar issues? |
How would this scheduled task work? Would triggering it pause all automatic subtitle search until the next manual API call? |
In fact this option would simply prevent Bazarr from searching for subtitles just after adding the episode/movie to Bazarr. It would wait for |
I see, yes that would totally resolve my issue! |
It's not a new scheduled task, it the that's allready there. Only the API endpoint for manual trigger of search would be new. |
oh ok so basically there would be an option somewhere in the settings to not auto download subs as soon as a file is added - only relying on the regular run of 'search for wanted...' every x hours? I thought the api endpoints already existed?: |
Exactly!
Of course I could use this one but for external integration, I prefer to define specific endpoints that won't get changed by UI breaking changes. I've done that for Plex integration. |
Yeah that would work very well for my use-case and feel like it would resolve my issue for sure. |
Ok then let me look into it in the upcoming days. I'll get back to both of you here once I have something worth trying. |
This should be fixed in upcoming beta. Check under Settings-->Sonarr/Radarr. Please report if it fix your issues. |
Just grabbed the beta and tested it with a custom script with those endpoints you added it and from my test files I had it seems to be working. Thanks for the help! |
Thanks for the feedback! Keep me informed! |
I have to wait for the stable release in order to test it, since I've no control over the docker container provided by my host, but I'll make sure to try it once it's released. |
Just tested it now that the stable release is out. It works for movies but not for episodes, it seems that newly added episodes are not automatically synced (movies are). |
This feature that was added only prevent Bazarr from searching for subtitles on import. If your episodes aren't imported properly, it's an unrelated issue. |
Describe the bug
I have a post-processing script that extracts the subtitle from video files after downloading but before importing. When Sonarr imports the files, it seems Bazarr sometimes detects it too quickly and doesn't see the subtitle file and then downloads a new file that overwrites the imported one. I'd say this happens ~20% of the time. It's not 100% consistent.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Would like to have imported Subtitles not to be overwritten.
Screenshots
N/A
Software (please complete the following information):
Additional context
Naming of the files is pretty standard and set by Sonarr:
Seems to be a very similar issue to #1715. I read through the ticket and got an idea from your comment here
My media lives on a ZFS pool so am wondering if that adds just enough latency that the subtitle just gets missed sometimes but purely a conjecture. Otherwise I don't know why it would only happen sometimes.
I do have a debug log file that I can send your way for a file that I seem to be able to get it to happen to at a higher frequency.
There definitely was a subtitle that was imported by Sonarr along side the video file. Main snippet though is
Is it possible to add 1 second sleep or something so see if that might be it? Or a way I can configure one? (Option, ENV variable, etc)
Let me know if you need more info. Thanks!
The text was updated successfully, but these errors were encountered: