Using .8.1 for Windows with Python 2.7.16.
When I do a manual scan for subtitles in a folder I know contains subtitles, Bazarr fails to find them. The reason, from looking at the command line output, is that Bazarr is scanning for the scene name and not the actual filename.
For example, instead of searching for "R:\Movies\War for the Planet of the Apes (2017)\War for the Planet of the Apes (2017).mkv" to check for a subtitle, Bazarr has saved the scene name - "War.For.The.Planet.Of.The.Apes.2017.2160p.UHD.BluRay.x265-EMERALD" - as both an alternate title (which it isn't) and the only title it searches for.
If Bazarr searched for the blue title in the screenshot, it would find the subtitle, but it searches under the other, non-existent title for some reason and then errors out.

Please provide a debug log (empty it before reproducing the issue).
Restart it cleared the issue. So does this mean that Bazarr is grabbing the scene names from Sonarr and Radarr and then not replacing those names with the actual filenames until a Bazarr restart?
It shouldn't. Even if it use scenename, it should be saved with the video filename, not the scenename.
Okay if I spot this error again, I'll do a debug log before restarting and upload here so you can see what's going on.
Thanks!
It did it again. Here's debug log output: bazarr.log
I still cannot reproduce it. Send me your bazarr.db and I'll to see what's going wrong.
It's now unable to index external subtitles and went ahead and re-downloaded hundreds of subtitles that already exist. Where should I upload the DB so you can see what's going on? Thanks.
Log is filled with this:
07/10/2019 00:12:58|ERROR |root |BAZARR unable to index external subtitles.|'Traceback (most recent call last):\n File "c:\bazarr\bazarr\bazarr\list_subtitles.py", line 161, in store_subtitles_movie\n only_one=settings.general.getboolean(\'single_language\'))\n File "c:\bazarr\bazarr\bazarr\../libs/subliminal_patch\core.py", line 672, in search_external_subtitles\n only_one=only_one, match_strictness=match_strictness))\n File "c:\bazarr\bazarr\bazarr\../libs/subliminal_patch\core.py", line 615, in _search_external_subtitles\n language_code = p_root.rsplit(".", 1)[1].replace(\'_\', \'-\')\nIndexError: list index out of range'|
In private on Discord.
I鈥檝e pushed a fix to dev branch. You can test it?
It's partially working. I'm not getting that error. However it's also not detecting existing subtitles on all shows and movies. I can see the srt files in the directories and Bazarr is still showing a number of them as "missing subtitles".
Can you update dev branch and test again? I've pushed a lot of fix today.
It's better but it's still not detecting a subtitle that's in the directory and is also trying to download a subtitle for a movie that was deleted months ago.
Did you ever think about backing up your database and restart with a brand new one?
Actually this is. Maybe a few months ago Bazarr stopped auto-updating (I think it was a known issue but I can't remember exactly). Once that was fixed, I wiped everything and rebuilt from scratch so this DB really isn't that old.
The symptoms you are mentioning here lead me to a corrupt/out of sync DB. I feel like if we are working to fix issues tied to something else we already fixed...
Ok. Can i just delete the db then restart bazarr and have it scan the disk and it will build a new db?
Yes but you need to select enabled languages on first run.
So I did that - updated dev branch from git, deleted DB, restarted and picked language then ran through the scan process a few times. It's still failing to detect an existing subtitle on one show and is not detecting a missing subtitle on one movie.
This issue is happening only for one show and one movie? Which ones?


Please provide a debug log again. Thanks.
Here you go:
bazarr.log
You have plenty of error in your log. I We are having a lot of issue with 0.8.2.x... I'm working hard to fix everything but I suggest you wait a couple of days and restart from scratch.
still an issue ?
Not sure as haven't done a ton of sub downloads recently. If you want close, that's fine - I'll reopen if I see the problem occur again.