trakt.py icon indicating copy to clipboard operation
trakt.py copied to clipboard

Caching sync call results?

Open razzeee opened this issue 10 years ago • 3 comments

Should this be done in our apps? Might be nice to have this centrally, might also be overkill. Would have to save timestamps to our sync/collection sync/watched calls and compare them with the result of last activity for that task http://docs.trakt.apiary.io/#reference/sync/last-activities/get-last-activity which we would call before doing anything else.

razzeee avatar Feb 06 '15 09:02 razzeee

I've been thinking about building a separate syncing library (e.g. trakt.sync.py), this could contain some common classes/tools like this.

I don't really have the time to work on this yet.. there are some higher priority issues to resolve in trakt/Plex-Trakt-Scrobbler before this.

fuzeman avatar Feb 07 '15 03:02 fuzeman

Sounds nice. If I can help just let me know. My python is still weak.

razzeee avatar Feb 07 '15 10:02 razzeee

I've started implementing a sync cache (available in trakt.sync.py) and storage backend (stash).

Still needs a lot more testing, wouldn't use this in production yet.

fuzeman avatar Mar 22 '15 00:03 fuzeman