Jump to content

Collection Etag bug


Recommended Posts

jasondove
Posted

I'm working on synchronizing collections from Emby to another system, and while additions to a collection correctly change the collection's etag, removing an item from the collection does not. For example:

  1. Check the etag for an existing collection (e.g. AAA)
  2. Add an item to the collection
  3. Check the etag on the collection; now BBB
  4. Remove the item from the collection
  5. Check the etag on the collection; still BBB

Ideally, the etag would be updated whenever the collection is modified.

Posted

Hello jasondove,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:


Thank you.

Emby Team

Happy2Play
Posted

Not sure I follow as I don't see any item tags in Collection.

I am guessing you are referring to Genres as the additional genre of an item is not automatically remove from the Collection when item is removed, unlike when item it is added. 

Requiring the Collection to be Refreshed to remove Genre. @Luke

Doing a Refresh all or Search for missing on the Collection will remove the rogue genre.

jasondove
Posted

To clarify, I am using the API and `Etag` is an additional field that can be returned from the `/Items` endpoint. My understanding is that an Etag is supposed to change whenever the resource (in this case the collection) changes. Unfortunately it only appears to be changing when adding items to a collection and not when removing them.

jasondove
Posted

Perhaps this would be better suited to the Developer API section?

  • 3 weeks later...
Posted

It's here. It's on my to do list for review.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...