mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[76] #1159 add support for official trakt lists
This commit is contained in:
parent
7137485612
commit
2a99dc2396
2 changed files with 2 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.18.3-develop75
|
1.18.3-develop76
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue