Skip to content

Commit

Permalink
[76] #1159 add support for official trakt lists
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Feb 21, 2023
1 parent 7137485 commit 2a99dc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.18.3-develop75
1.18.3-develop76
2 changes: 1 addition & 1 deletion modules/trakt.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def build_user_url(self, user, name):

def _list(self, data, urlparse=True, trakt_ids=False, fail=True, ignore_other=False):
try:
url = requests.utils.urlparse(data).path if urlparse else f"/users/me/lists/{data}"
url = requests.utils.urlparse(data).path.replace("/official/", "/") if urlparse else f"/users/me/lists/{data}"
items = self._request(f"{url}/items")
except Failed:
raise Failed(f"Trakt Error: List {data} not found")
Expand Down

0 comments on commit 2a99dc2

Please sign in to comment.