Skip to content

Commit b75ec54

Browse files
committed
Deprecate get_watched to indicate wrong api call being used
1 parent 2868b74 commit b75ec54

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

trakt/sync.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"""This module contains Trakt.tv sync endpoint support functions"""
33
from datetime import datetime, timezone
44

5+
from deprecated import deprecated
6+
57
from trakt.core import get, post, delete
68
from trakt.utils import slugify, extract_ids, timestamp
79

@@ -349,6 +351,7 @@ def get_watchlist(list_type=None, sort=None):
349351

350352

351353
@get
354+
@deprecated("This method returns watchlist, not watched list. This will be changed in PyTrakt 4.x to return watched list")
352355
def get_watched(list_type=None, extended=None):
353356
"""Return all movies or shows a user has watched sorted by most plays.
354357

0 commit comments

Comments
 (0)