Replies: 4 comments 8 replies
-
That token being a timestamp makes sense. Actually a very clever way of doing that. For Libation, I have no problem with a full library query. It's SIGNIFICANTLY faster than it was and it supports unlimited books. Thanks for researching this. Obviously having a nearly instant scan would be sexy. Here's the rub: my most common day-to-day use for Libation is deciding on my next book because audible's site and app are godawful for this. My workflow is to rate every book I finish and use Libation's |
Beta Was this translation helpful? Give feedback.
-
What I thought might work for Libation is:
This definitely more complicated though. It gets even more complicated if more than 100 books have changed since the last scan, because then you'd have to make successive calls to retrieve the rest of the changes using the Continuation-Token. Or, you'd just resolve to re-scan the full library if that happened. But if you did this, the average scan time could be significantly reduced even more, despite the worst-case scan time increasing slightly. |
Beta Was this translation helpful? Give feedback.
-
Sorry for posting this here. I didn't see that this was already an Issue. |
Beta Was this translation helpful? Give feedback.
-
Must the state-token be created by Audible first and send to you or can you use any timestamp you want? |
Beta Was this translation helpful? Give feedback.
-
@rmcrackan
I thought State-Token looked a little too small to be a real Token. It's actually a unix timestamp with milliseconds. You can specify any time you want, not just the values returned in State-Token, and Audible will deliver only the changes to your library after that time. If an item was removed from your library, item["status"] is "Revoked".
I tested this with provided_review, and unfortunately Audible does not consider a change in provided_review to be a state change, so it will not return items that only have changed user ratings. It appears the only way to detect a provided_review change is to query the all items with that response group.
Beta Was this translation helpful? Give feedback.
All reactions