Jellyfin Forum
[API] VirtualFolders missing itemId - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Development (https://forum.jellyfin.org/f-development)
+--- Forum: Server Development (https://forum.jellyfin.org/f-server-development)
+--- Thread: [API] VirtualFolders missing itemId (/t-api-virtualfolders-missing-itemid)



[API] VirtualFolders missing itemId - Schaka - 2024-01-07

First of all, I hope this is even the correct place to ask. 

I feel like this shouldn't be a GitHub issue. I'm looking for clarification more than anything.
I'm currently building a media management/janitor application, that cleans up my library.

I basically want to get rid of old files, schedule them for deletion, etc. That part is actually fairly easy - there's plenty of API calls in Jellyfin, Jellyseerr and the *arrs to delete media.
What I've been struggling to get right is notifying my users. 
I had the idea of creating new VirtualFolders or Collections within Jellyfin, call them "Gone Soon (TV Shows)" or something similar, load them up with all the locations for seasons that are scheduled to be deleted next week, add all the locations (e.g. "/shows/Seinfeld/Season 01") per season or per movie and then remove them when the shows get deleted.

However, it seems that Jellyfin can't pick up movies if you link directly to the folder that contains the movie file or TV shows unless you let Jellyfin discover the folders itself. This wouldn't work, if I'm only dealing with a subset.
So I tried use Collections. I create a BoxSets library and tried creating Collections inside (via parentId). Unfortunately, it seems newly created VirtualFolders of any kind (BoxSet, TvShows, Movies) don't get an itemId.

I'm at a bit of a loss here. Currently what I'm trying to achieve doesn't seem possible and I'm thinking of just creating local copies (via hardlinks) on the file system to simulate what I'm trying to achieve.

Is there something I'm missing?


RE: [API] VirtualFolders missing itemId - xiNe - 2024-08-25

wondering the same question as well, anyone willing to answer?