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

"Scan Disk" toggles from Existing to Missing, even with files in the Disk #2815

Open
bruno-briner opened this issue Jan 7, 2025 · 3 comments

Comments

@bruno-briner
Copy link

Describe the bug
The "Scan Disk" button changes the status from Existing to Missing and Vice-Versa.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Movies' and select a Movie that contains the desired subtitles
  2. Click on 'Scan Disk'
  3. The desired subtitles disappear and a "Missing" comes up
  4. Click again in "Scan Disk" and they come back

Expected behavior
Existing subtitles should not disappear and toggle to missing.

Screenshots
A movie with existing subtitles. I even duplicate the same file with a different extensions.
image
image

After hitting "Scan Disk" "Portuguese Brazil" toggles to "Missing". Hitting "Scan Disk" again they come back.
image

Software (please complete the following information):
Bazarr Version : 1.5.1
Package Version : v1.5.1-ls286 by linuxserver.io
Sonarr Version : 4.0.11.2680
Radarr Version :5.17.2.9580
Operating System : Linux-6.1.118-Unraid-x86_64-with
Python Version : 3.12.8
Database Engine : Sqlite 3.47.1

@morpheus65535
Copy link
Owner

Let me guess, you're using languages equals?

@bruno-briner
Copy link
Author

Yes.

I use language equals to consider "forced" and "hi" as equals to Portuguese Brazilian.

I have removed them to test but I have the same behavior. Hitting "Scan Disk" toggles from Missing to Existing and Vice Versa.

I also noticed some errors in the Log.

image

@bruno-briner
Copy link
Author

bruno-briner commented Jan 8, 2025

I was able to identify that it is because a file with pb.srt and a pob.srt also exist in the folder (apart from a pt-BR.srt)

If the status is missing and I hit "Scan Disk" Bazarr recognizes them all as Portuguese (Brazil) without any problem but hitting "Scan Disk" another time changes the status to "Missing".

If I delete or rename the "pb.srt" and "pob.srt" files Bazarr works as expected, i.e. "Scan Disk" does not change status to missing.

Is there a way to avoid this without having to delete the "pob" and "pb"?

PS:
Some of my movies also have an English (en.srt) and French (fr.srt) apart from the Portuguese Brazil (pt-BR.srt, pb.srt and pob.srt). All disappear when hitting "Scan Disk".

The reason for having "pob", "pb" and "pt-BR" is that Kodi recognizes "pob" and "pb" as Portuguese (Brazil) but "pt-BR" is recognized as "Breton-pt".

If I use Kodi to download a subtitle it saves as "pob" or "pb" depending on the addon, on the other hand Bazarr downloads them as "pt-BR".

My workaround was to run a daily script that searches and copies the subtitles in all different extensions. Kodi could then find and recognize a subtitle downloaded by Bazarr and I was hopping Bazarr would then recognize a subtitle downloaded by a Kodi addon.

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

No branches or pull requests

2 participants