[76] #1159 add support for official trakt lists

This commit is contained in:
meisnate12 2023-02-21 15:01:45 -05:00
parent 7137485612
commit 2a99dc2396
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
1.18.3-develop75 1.18.3-develop76

View file

@ -377,7 +377,7 @@ class Trakt:
def _list(self, data, urlparse=True, trakt_ids=False, fail=True, ignore_other=False): def _list(self, data, urlparse=True, trakt_ids=False, fail=True, ignore_other=False):
try: 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") items = self._request(f"{url}/items")
except Failed: except Failed:
raise Failed(f"Trakt Error: List {data} not found") raise Failed(f"Trakt Error: List {data} not found")