2015-11-04, 22:06
sorry for the long post, just read the last paragraph.
ok, the idea of always using watched-status from trakt doesn't work:
on initial sync I want the watched status from kodi transferred to trakt
These are the sync problems I found using trakt..
-watched-status can not be changed back to "unwatched":
-removing(+deleting) item in kodi db:
works: watchdog service triggers kodi-db clean, trakt-plugin removes item from trakt collection after clean.
-removing item in trakt doesn't work:
on sync item is found in kodi db and added again to trakt collection.
I'd like kodi to remove the item and delete files.
(File has to be deleted or on next db scan it is added again)
The only solution I can think of is if "actions" are timestamped:
- load trakt-db
- compare trakt-change-timestamp with kodi-change-timestamp for each item
- transfer newer status to other db
ok, looked into trakt api and kodi db:
trakt has some timestamps (last_activities) but not for specific items and kodi has no "last-changed" timestamps at all.
I guess there is just no way to fully sync kodi and trakt.
I have one final idea:
- on kodi startup copy complete trakt-db to kodi-db (and delete files of removed items)
- while running copy all changes in kodi-db to trakt
(and context menus "clone trakt to kodi" and "clone kodi to trakt")
ok, the idea of always using watched-status from trakt doesn't work:
on initial sync I want the watched status from kodi transferred to trakt
These are the sync problems I found using trakt..
-watched-status can not be changed back to "unwatched":
-removing(+deleting) item in kodi db:
works: watchdog service triggers kodi-db clean, trakt-plugin removes item from trakt collection after clean.
-removing item in trakt doesn't work:
on sync item is found in kodi db and added again to trakt collection.
I'd like kodi to remove the item and delete files.
(File has to be deleted or on next db scan it is added again)
The only solution I can think of is if "actions" are timestamped:
- load trakt-db
- compare trakt-change-timestamp with kodi-change-timestamp for each item
- transfer newer status to other db
ok, looked into trakt api and kodi db:
trakt has some timestamps (last_activities) but not for specific items and kodi has no "last-changed" timestamps at all.
I guess there is just no way to fully sync kodi and trakt.
I have one final idea:
- on kodi startup copy complete trakt-db to kodi-db (and delete files of removed items)
- while running copy all changes in kodi-db to trakt
(and context menus "clone trakt to kodi" and "clone kodi to trakt")