Currently epi.markWatched always uses the current date, so as a result, when Trakt.TV syncs, all of the watched-at date will be wrong (i.e. the time of import). This patch makes markWatched accept a date to set, and uses the last_watched_at field from Trakt.TV during import to fill this in, thereby preserving the watched-at date.
Some background: I was using Trakt to add shows watched at the "release date" and I hoped to pull that info back into DuckieTV to "correct" some of the dates, but I noticed that now all the dates were wrong.
Currently
epi.markWatched
always uses the current date, so as a result, when Trakt.TV syncs, all of the watched-at date will be wrong (i.e. the time of import). This patch makesmarkWatched
accept a date to set, and uses thelast_watched_at
field from Trakt.TV during import to fill this in, thereby preserving the watched-at date.Some background: I was using Trakt to add shows watched at the "release date" and I hoped to pull that info back into DuckieTV to "correct" some of the dates, but I noticed that now all the dates were wrong.