-
Notifications
You must be signed in to change notification settings - Fork 226
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
Bazaar may not recognize subtitles files without language code #703
Comments
Please empty log, enable debug logging in settings-->general, go to X-Files series page and click on scan from disk button then provide the bazarr.log file. |
@morpheus65535 See attached |
Bazarr is not even aware that those file are there... we don't even get to the point where it guess the language from the content of the file. What are the permission of those srt files? |
The folder permissions inherit the parent's folder permissions, e.g. nothing special to it. In fact, the existing subtitles have been downloaded using Bazarr previously. I've just deleted them and triggered "Download Missing Subtitles" + "Scan DIsk for Subtitles". Attached is the debug log below. As you might notice, Bazarr downloads a fresh copy of the subtitles in the season folder, yet the scan process doesn't "see" them later on. |
Did you enable |
I can't find any Upon renaming all files (mkv + srt) to strip away Upon renaming all files to their original names (essentially adding |
How long is the complete path of one of those episode? |
|
Hi honestly have no clue what is the issue here... if you just add language code to subtitles filename, do they get recognized by Bazarr? |
Hi. Apologies for the delay - pre-Christmas madness got in the way. Adding language code does make the episodes appear. See below. Apparently the issue isn't related to the filesystem, but rather something in the scan logic. Have you had the chance to reproduce the issue on your end, e.g. create a file structure like the one described and see what may be causing it? Would it help if I send you text file with all file names etc? |
I have episodes with way longer path than that but I cannot reproduce your issue. To be honest, I till don't know how to reproduce the issue. |
Here is a guide how to reproduce the issue:
Hope this helps. Let me know if something isn't well explained. |
@screamerbg that'S perfectly explained. Give a couple of hours and I'll test it and should come with a fix if I'm able to reproduce. |
@pannal if |
Yep, AC3-STM gets removed from the subtitle filename for the strict filename comparison and thus it doesn't exactly match anymore. This is due to language code detection, which is a bit too lax. Prototyping a solution right now. |
Pushed a possible fix to development. Please try it out @screamerbg |
@pannal Thanks for the patch, though it doesn't seem to fix the issue. I've applied your changes with the following steps:
Am I doing this correctly? |
In fact the patch is already available in Bazarr dev branch. You simply pull latest dev. |
@morpheus65535 How do I switch to the dev branch? I couldn't find an option is Settings. |
@screamerbg using windows installer? You can’t. You have to be running from source. |
@morpheus65535 I see. As I couldn't find how to switch to dev, I used the steps above to update just these 2 files that were patched. Unfortunately the issue still persists. |
If you want to test that way, at least update the files from those you can find on Bazarr github. I'm not sure it will work as master and dev branch are really different as we are migrating code base to python 3.x. |
@morpheus65535, @pannal Just ran Bazarr from source and it works like a charm - Bazarr recognized the aforementioned X-Files subtitles and also for other series as well. Thank you both for this! How do I get rid of the Python 3 notice? |
Great news! To get rid of the Python deprecation warning, just run Bazarr using Python >= 3.6 (3.8 works fine) and you win’t see it anymore. |
Whahey! Merry Christmas! :) |
Describe the bug
Bazaar may not recognize subtitles files without language code, apparently related to file naming.
As an example, I have 2 seasons of the same TV show with subtitles named exactly as the video file.
Working example
The subtitles are recognized correctly.
File structure
Bazaar page
Non-working example
The subtitles are not recognized, as if they don't exist. Apparently renaming the video and subtitle files altogether fixes the issue.
File structure
Bazaar page
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Bazarr should correctly identify the subtitles files.
Screenshots
Config
config.ini.zip
Software (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: