From 46bd678b8c62bd3d91b73e42e8f0b6fac96e90bf Mon Sep 17 00:00:00 2001 From: Mitchell Klijs Date: Wed, 2 May 2018 09:50:13 +0200 Subject: [PATCH] Add ability to fetch other users' watchlists --- media/trakt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/media/trakt.py b/media/trakt.py index d0b7fdc..d1e8163 100644 --- a/media/trakt.py +++ b/media/trakt.py @@ -282,7 +282,8 @@ class Trakt: while True: headers, authenticate_user = self.oauth_headers(authenticate_user) - req = requests.get('https://api.trakt.tv/sync/watchlist/shows', params=payload, + req = requests.get('https://api.trakt.tv/users/' + authenticate_user + '/watchlist/movies', + params=payload, headers=headers, timeout=30) log.debug("Request User: %s", authenticate_user) @@ -790,7 +791,8 @@ class Trakt: while True: headers, authenticate_user = self.oauth_headers(authenticate_user) - req = requests.get('https://api.trakt.tv/sync/watchlist/movies', params=payload, + req = requests.get('https://api.trakt.tv/users/' + authenticate_user + '/watchlist/movies', + params=payload, headers=headers, timeout=30) log.debug("Request User: %s", authenticate_user)