Closed vortex91 closed 5 months ago
i got this working via creating hardlinks since i cant for the life of me figure out the API to remove a movie from a specific collection. Any chance you can make util which handles lookup and removal of a movie in specific collection?
i got this working via creating hardlinks since i cant for the life of me figure out the API to remove a movie from a specific collection. Any chance you can make util which handles lookup and removal of a movie in specific collection?
yeah the Jellyfin API is not the easiest to work with. Here's the relevent api path: https://api.jellyfin.org/#tag/Collection/operation/RemoveFromCollection
It should be similar to adding a movie. E.g.
requests.delete(f'{server_url}/Collections/{collection_id}/Items?ids={movie_id}',headers=headers, params=params2)
The current logic would probably need modifying to, e.g.
I should have time to work on this later this evening. To be honest, this whole project needs a bit of a refactor.
This is now implemented in a super basic way. Add the clear_collection: true
flag to a plugin which will remove all the entries from a collection before adding them again.
For top playlists it would be nice to remove entries.