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

[Feature]: Remove video along with associated files of my choice #12

Open
Yankees4life opened this issue Jan 13, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@Yankees4life
Copy link

Describe the feature you'd like added

When a video gets deleted with this plugin, I would like for the associated files to be deleted as well (srt, edl, json, jpg) since I have no need for it as I already watched the video and the video is already off of my hard drive. Cheers

Additional context

No response

@Yankees4life Yankees4life added the enhancement New feature or request label Jan 13, 2023
@shemanaev
Copy link
Owner

The plugin delegates all delete tasks to Jellyfin itself, and it should delete all associated files as long as they recognized by Jellyfin (named properly). And in my observation at least subtitles and external audio are properly deleted.
Here is the list of extensions handled by Jellyfin:

https://github.com/jellyfin/jellyfin/blob/cc3d08759e7daf77a946a827dcc1b0482c647f03/MediaBrowser.Controller/Entities/BaseItem.cs#L49-L66

If you manually delete video from Jellyfin (like in web interface) but associated files still present, it might be a bug in Jellyfin.

Deleting unrecognized files on the other hand could be tricky as there can be mixed libraries of all kinds. And for this case, I don't have an opinion on a right behavior yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants