lad1337 / XDM

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

Cant search TV #119

Closed theman480 closed 10 years ago

theman480 commented 10 years ago

This is what happend: Please write a short story of what the issue is.


Raw log message:

{
    "msg": "Error during searchForElement of TraktTV (Default) \nError: unsupported type for timedelta hours component: unicode\n\nTraceback (most recent call last):\n  File \"C:\\Users\\Renan\\Desktop\\XDM-master\\xdm\\plugins\\meta.py\", line 160, in outer\n    return run(*args, **kwargs)\n  File \"C:\\Users\\Renan\\Desktop\\XDM-master\\plugins\\Provider\\TraktTV-de_lad1337_trakt_tv-0_5\\trakttv.py\", line 60, in searchForElement\n    self._build_show(_show, fakeRoot, mediaType)\n  File \"C:\\Users\\Renan\\Desktop\\XDM-master\\plugins\\Provider\\TraktTV-de_lad1337_trakt_tv-0_5\\trakttv.py\", line 100, in _build_show\n    airdate = parser.parse(_episode['first_aired_iso']) - datetime.timedelta(hours=self.c.release_delta)\nTypeError: unsupported type for timedelta hours component: unicode\n\nTraceback:\nTraceback (most recent call last):\n  File \"C:\\Users\\Renan\\Desktop\\XDM-master\\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 \"C:\\Users\\Renan\\Desktop\\XDM-master\\xdm\\classes.py\", line 258, in __str__\n    return '%s(%s)[%s] %s' % (self.type, self.mediaType, self.get_id(), self.getName())\n  File \"C:\\Users\\Renan\\Desktop\\XDM-master\\xdm\\classes.py\", line 307, in __getattribute__\n    return BaseModel.__getattribute__(self, name)\n  File \"C:\\Users\\Renan\\Desktop\\XDM-master\\site-packages\\peewee.py\", line 509, in __get__\n    return self.get_object_or_id(instance)\n  File \"C:\\Users\\Renan\\Desktop\\XDM-master\\site-packages\\peewee.py\", line 504, in get_object_or_id\n    raise self.rel_model.DoesNotExist\nMediaTypeDoesNotExist\n", 
    "lvl": "ERROR", 
    "caller": {
        "line": 169, 
        "file": "C:\\Users\\Renan\\Desktop\\XDM-master\\xdm\\plugins\\meta.py", 
        "fn": "outer"
    }, 
    "data": {}, 
    "time": "2014-01-30 19:39:52.031000"
}

System info:

lad1337 commented 10 years ago

Go into the trakt.tv plugin settings and enter "1" or "0" into the threshold field and save This should fix it ... I don't know why this is happening but it's something very deep in the config system for plugins

theman480 commented 10 years ago

Works fine! Thank you for the amazing tool