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
[Issue]: Can't manually add or delete subtitles #11318
Comments
Hi, it seems like your issue report has the following item(s) that need to be addressed:
This is an automated message, currently under testing. Please file an issue here if you encounter any problems. |
Hi, thanks for the feedback. Indeed, I overlooked that part in jellyfin/jellyfin-web#4883. I will happily dig into it and offer a fix. Might not have time to work on it before the end of this month so if someone else wants to step up, don't hesitate |
The backend change is not as simple as adding the right policy to the delete endpoint though. We should only allow the deletion of remote subtitles with the EnableSubtitleManagement policy, subtitles already in the media directory should be left untouched. |
To be honest, I don't really agree with that. I think the EnableSubtitleManagement is there to give administrator rigths over the subtitles without giving full administrator rights. What you"re suggesting seems more confusing. And more complex to implement. |
Personally, I also think this should also allow the deletion of external subtitle files. If I give another user that permission, I trust that user to pick the correct subtitles. Sometimes automatic subtitle downloader will download a subtitle that is out of sync, and I would like users (that I trust) to be able to fix that without having to contact me. |
I made a PR to propose a fix. it allows a non-admin user and admin users to delete any external subtitle. As discussed, it is the approach I prefer. I'll let the jellyfin core team decide if they accept it or not. This would solve (Scenario A) of this issue. @Simsala91, I was unable to reproduce (Senario B) issue. I had no trouble manually importing subtitles as both admin and non-admin user, via click and drop and browsing |
Please describe your bug
When editing external subtitles of a movie, it is neither possible to manually add a subtitle nor is it possible to manually delete subtitles as a non-admin user with the permission "Allow user to edit subtitles".
Adding subtitles with the OpenSubtitlesPlugin works fine.
Reproduction Steps
(Scenario A) Have a movie with external subtitles. Try to remove them as a non-admin user with permission "Allow user to edit subtitles". Subtitle does not get deleted. (This works as admin.)
(Scenario B) Try to manually upload a subtitle file either as admin or as non-admin with permission "Allow user to edit subtitles". The subtitle does not get created. (Also after refresh).
Jellyfin Version
Unstable (master branch)
if other:
No response
Environment
Jellyfin logs
FFmpeg logs
No response
Please attach any browser or client logs here
No response
Please attach any screenshots here
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: