-
Notifications
You must be signed in to change notification settings - Fork 221
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
Embedded subtitle provider fails when filename is too long #2241
Comments
I'm trying to extract subtitles on my whole Sonarr library for the first time so the debug logs are going to be a bit difficult (~2000 files on the wanted list)... I imagine that'll be tens of megabytes at least and will take hours to generate, and sift through. Is this non-debug log ok?
I assume the code is just short-circuiting in this loop here bazarr/bazarr/subtitles/wanted/series.py Lines 76 to 83 in 07697fa
I feel the pain at that sentiment. But ext4, zfs, and btrfs are probably the most common filesystems used for servers and they all only support up to 255 chars. It's probably worthwhile to work well with them? |
I totally agree, sorry for the unnecessary rough comment. I'm pretty sure that, from the log you provided, we'll be able to add something to catch the exception and simply carry over to the next one. Unfortunately, it may result in retrying to extract the same subtitles on the next search task occurrence. I'll let vitiko look at it, maybe he have something in mind. ;-) |
Should be fixed in upcoming beta. Thanks for the report! |
Worked for me in beta 26, thanks! |
Describe the bug
When using the embedded subtitle provider to extract embedded ASS subtitles, if video file name is almost 255 characters, the ffmpeg command can add an extension for the extracted subtitles that causes the file to exceed 255 characters, causing it to fail on ext4 and zfs filesystems with "Filename too long".
Consequently, the provider gets throttled for 10 minutes. Being the only provider on my Bazarr instance, the set of non-throttled providers becomes 0, and all other wanted files fail to download subtitles.
Output from
ffmpeg
:To Reproduce
Try to use the embedded subtitle provider with a file with a really long filename. The one I specifically had issues with is
The provider wants to write subs to a file named
which is 257 characters long.
Expected behavior
I see 2 options:
Software (please complete the following information):
The text was updated successfully, but these errors were encountered: