XDM icon indicating copy to clipboard operation
XDM copied to clipboard

Internal server erro (500)

Open activ opened this issue 11 years ago • 3 comments

Hi,

I'm trying to get XDM up and running and keep getting in trouble as soon as I start add and downloading. This is roughly what I do: -git clone the master repo -start xdm using "python XDM.py" -go through the config and add enough plugins for basic tv show downloading (sab,trakttv,episode renam) -add a tv show

After that episodes get added to sabnzbd but the XDM gui breaks down, the browser gives me this message:

Traceback (most recent call last): File "/opt/xdm/site-packages/cherrypy/_cprequest.py", line 656, in respond response.body = self.handler() File "/opt/xdm/site-packages/cherrypy/lib/encoding.py", line 188, in call self.body = self.oldhandler(_args, *_kwargs) File "/opt/xdm/site-packages/cherrypy/_cpdispatch.py", line 34, in call return self.callable(_self.args, *_self.kwargs) File "/opt/xdm/xdm/web/init.py", line 132, in index return template.render(**self.globals()) File "/opt/xdm/site-packages/jinja2/environment.py", line 894, in render return self.environment.handle_exception(exc_info, True) File "html/templates/index.html", line 4, in top-level template code {% set active_page = active_page|default(cur_index) -%} File "html/templates/base.html", line 126, in top-level template code {{message.createTime|relativeTime}} {{('time_ago')}}
File "/opt/xdm/xdm/helper.py", line 175, in reltime return format_timedelta(date - datetime.now(), locale=common.getLocale()) File "/opt/xdm/site-packages/babel/dates.py", line 649, in format_timedelta plural_form = locale.plural_form(value) AttributeError: 'NoneType' object has no attribute 'plural_form'

After a restart I will get the gui again. I am noticing that in the details for the tv show none of the episodes are listed, is that normal? (might be unrelated).

Hope you can help.

Thanks, activ

activ avatar Jan 18 '14 14:01 activ

A bit of extra info: It does seem to continue going in the background, when it finished a download and tries to rename this is written to the log: given ERROR: 'NoneType' object has no attribute 'title'

I expect this is related to not getting the show names.

activ avatar Jan 18 '14 15:01 activ

okay what i can see is that some message (top right thing) it wants to create has no date and babel can not translate the time which crashes the rendering

and there should be episodes !

since you are experiencing this right now we could debug it while chatting ... either got on irc on freenode.net in the channel #xdm or go on http://xdm.lad1337.de/ and click on chat on the right :)

lad1337 avatar Jan 18 '14 15:01 lad1337

On my way

activ avatar Jan 18 '14 15:01 activ