Browse Source

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

pull/466/head
Prinz23 10 years ago
committed by JackDandy
parent
commit
e7803c1499
  1. 1
      CHANGES.md
  2. 2
      lib/trakt/__init__.py

1
CHANGES.md

@ -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)

2
lib/trakt/__init__.py

@ -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)

Loading…
Cancel
Save