Skip to content

Commit 7d5ddad

Browse files
glenscCopilot
andcommitted
Refactor watched_movies property to use get_watched_movies
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 6a6d92a commit 7d5ddad

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

trakt/users.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,7 @@ def watched_movies(self):
541541
collection.
542542
"""
543543
if self._watched_movies is None:
544-
data = yield 'users/{user}/watched/movies'.format(
545-
user=slugify(self.username)
546-
)
547-
self._watched_movies = self._build_watched_movies(data)
544+
self._watched_movies = self.get_watched_movies()
548545
yield self._watched_movies
549546

550547
@property

0 commit comments

Comments
 (0)