lad1337 / XDM

XDM: eXtendable Download Manager. Plugin based media collection manager.
xdm.lad1337.de
Other
203 stars 46 forks source link

Trakt.tv do not work #187

Open djbobyd opened 9 years ago

djbobyd commented 9 years ago

First, thanks for the great application. I have an issue with the TV search. Trakt has changed their UI and now there is no way to get an API key. I tried with a key from a newly created application in their new UI, but I get the following error:

{"msg": "Error during searchForElement of TraktTV (Default) \nError: Expecting value: line 1 column 2 (char 1)\n\nTraceback (most recent call last):\n  File \"/opt/XDM/xdm/plugins/meta.py\", line 160, in outer\n    return run(*args, **kwargs)\n  File \"/opt/XDM/plugins/Provider/TraktTV-de_lad1337_trakt_tv-0_5/trakttv.py\", line 55, in searchForElement\n    _results = trakt.tv.search.shows(term)\n  File \"/opt/XDM/plugins/Provider/TraktTV-de_lad1337_trakt_tv-0_5/pluginRootLibarys/trakt/api.py\", line 114, in shows\n    return cls._get('search/shows', query)\n  File \"/opt/XDM/plugins/Provider/TraktTV-de_lad1337_trakt_tv-0_5/pluginRootLibarys/trakt/api.py\", line 24, in _get\n    response = requests.get(cls._builduri(api, *args), auth=auth).json()\n  File \"/usr/lib/python2.7/dist-packages/requests/models.py\", line 741, in json\n    return json.loads(self.text, **kwargs)\n  File \"/usr/lib/python2.7/dist-packages/simplejson/__init__.py\", line 488, in loads\n    return _default_decoder.decode(s)\n  File \"/usr/lib/python2.7/dist-packages/simplejson/decoder.py\", line 370, in decode\n    obj, end = self.raw_decode(s)\n  File \"/usr/lib/python2.7/dist-packages/simplejson/decoder.py\", line 389, in raw_decode\n    return self.scan_once(s, idx=_w(s, idx).end())\nJSONDecodeError: Expecting value: line 1 column 2 (char 1)\n\nTraceback:\nTraceback (most recent call last):\n  File \"/opt/XDM/xdm/plugins/meta.py\", line 167, in outer\n    log.error(\"Error during %s of %s \\nError: %s\\n\\n%s\\nNew value:%s\" % (run.__name__, caller_name, ex, tb, out), traceback=tb, new_out=out, exception=ex)\n  File \"/opt/XDM/xdm/classes.py\", line 258, in __str__\n    return '%s(%s)[%s] %s' % (self.type, self.mediaType, self.get_id(), self.getName())\n  File \"/opt/XDM/xdm/classes.py\", line 307, in __getattribute__\n    return BaseModel.__getattribute__(self, name)\n  File \"/opt/XDM/site-packages/peewee.py\", line 509, in __get__\n    return self.get_object_or_id(instance)\n  File \"/opt/XDM/site-packages/peewee.py\", line 504, in get_object_or_id\n    raise self.rel_model.DoesNotExist\nMediaTypeDoesNotExist\n", "lvl": "ERROR", "caller": {"line": 169, "fn": "outer", "file": "/opt/XDM/xdm/plugins/meta.py"}, "data": {}, "time": "2015-01-12 22:46:16.394638"}
{"msg": "sending ERROR with notifiers", "lvl": "DEBUG", "caller": {"line": 148, "fn": "_log", "file": "/opt/XDM/xdm/logger.py"}, "data": {}, "time": "2015-01-12 22:46:16.395545"}

Is there some fix for this? Thanks

lad1337 commented 9 years ago

sorry not that know of ... but i will have to update the trakt plugin anyway because the response for v1 changed too (season images are missing) so currently it dosent work at all ... i'll look into the oauth thing for v2