trakt / script.trakt

Trakt.tv movie and TV show scrobbler for Kodi
GNU General Public License v2.0
318 stars 149 forks source link

Synchronisation is fetching information from trakt about shows/movies that are absent in local db #656

Open MPogoda opened 3 weeks ago

MPogoda commented 3 weeks ago

Hey! Not sure whether it's expected behaviour (because everyone is fine with current implementation) or not, but when synchronisation happens, this script fetches all the "watched" entries from trakt, which is IMO not great:

Expected Behavior

Current Behavior

Possible Solution

I see no reason to fetch all the watched entries, perhaps just fetching data for shows/movies that are present in local db. I briefly glanced over trakt API and it doesn't seem like there's a way to fetch only entries with given ids (AFAIU there's only "fetch by id" for single entry), which is probably a blocker for this suggested solution (and maybe there are other reasons to fetch everything?)

Other approach could be to forbid matching of local show that was already matched to remote show A, to a different show B.

Steps to Reproduce (for bugs)

See example below.

Context

I've been experience wrongful scrobbles between shows with identical names (Doctor Who 1963 <-> Doctor Who 2005, The Office (US) <-> The Office (UK)) within following flow:

Basically, what happens within :point_up: flow is:

this took me a while to figure out and was driving me crazy

Your Environment

Don't think it matters :shrug: