Change Trakt url to fix baseline uses (e.g. add from trending)

This commit is contained in:
Prinz23 2015-07-16 20:28:51 +02:00 committed by JackDandy
parent 456e6de634
commit e7803c1499
2 changed files with 2 additions and 1 deletions

View file

@ -99,6 +99,7 @@
* Change pushbullet from urllib2 to requests
* Change to make pushbullet error messages clearer
* Change pyNMA use of urllib to requests (ref:hacks.txt)
* Change Trakt url to fix baseline uses (e.g. add from trending)
[develop changelog]
* Update Requests library 2.7.0 (ab1f493) to 2.7.0 (8b5e457)

View file

@ -30,7 +30,7 @@ def TraktCall(method, api, username=None, password=None, data={}):
method = method.replace("%API%", api)
# make the full url
url = 'https://api.trakt.tv/' + method
url = 'https://api-v2launch.trakt.tv/' + method
# take the URL params and make a json object out of them
encoded_data = json.JSONEncoder().encode(data)