trakt.py
trakt.py copied to clipboard
Caching sync call results?
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.
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.
Sounds nice. If I can help just let me know. My python is still weak.
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.