Skip to content

Commit

Permalink
Revert changes to watch_at timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
beschoenen committed Aug 15, 2024
1 parent 695a3e2 commit dd8d70b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/lib/kodiUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def kodiRpcToTraktMediaObject(type, data, mode="collected"):
data["ids"] = utilities.guessBestTraktId(id, type)[0]

if "lastplayed" in data:
episode["last_watched_at"] = utilities.to_iso8601_datetime(utilities.from_datetime(data["lastplayed"]))
episode["watched_at"] = utilities.to_iso8601_datetime(utilities.from_datetime(data["lastplayed"]))
if "dateadded" in data:
episode["collected_at"] = utilities.to_iso8601_datetime(utilities.from_datetime(data["dateadded"]))
if "runtime" in data:
Expand All @@ -204,7 +204,7 @@ def kodiRpcToTraktMediaObject(type, data, mode="collected"):
if checkExclusion(data.pop("file")):
return
if "lastplayed" in data:
data["last_watched_at"] = utilities.to_iso8601_datetime(utilities.from_datetime(data.pop("lastplayed")))
data["watched_at"] = utilities.to_iso8601_datetime(utilities.from_datetime(data.pop("lastplayed")))
if "dateadded" in data:
data["collected_at"] = utilities.to_iso8601_datetime(utilities.from_datetime(data.pop("dateadded")))
if data["playcount"] is None:
Expand Down

0 comments on commit dd8d70b

Please sign in to comment.