-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update trakt watched_movies list during scan
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,6 @@ def liked_lists(self): | |
return pytrakt_extensions.get_liked_lists() | ||
|
||
@property | ||
@memoize | ||
This comment has been minimized.
Sorry, something went wrong. |
||
@nocache | ||
@rate_limit() | ||
def watched_movies(self): | ||
|
@@ -181,6 +180,7 @@ def scrobbler(media: Union[Movie, TVEpisode]) -> ScrobblerProxy: | |
@time_limit() | ||
def mark_watched(self, m, time): | ||
m.mark_as_seen(time) | ||
self.watched_movies.add(m.trakt_id) | ||
This comment has been minimized.
Sorry, something went wrong.
glensc
Collaborator
|
||
|
||
def add_to_collection(self, m, pm: PlexLibraryItem): | ||
if m.media_type == "movies": | ||
|
you absolutely need
@memoize
here, otherwise, each access of the property will return you new copy of theset()
.