XDM icon indicating copy to clipboard operation
XDM copied to clipboard

Lost element (no parent) in TV plugin

Open MangaValk opened this issue 11 years ago • 1 comments

i just started using your awsome XDM but i have a little trouble.

Searcher keeps giving errors. and a small second problem, i cant get the episode mover working. probably i am doing something wrong.

"Error in the scheduler thread of searcher. 3 fails so far. Traceback: Traceback (most recent call last): File "/Servers/XDM/xdm/scheduler.py", line 81, in run self._action() File "/Servers/XDM/xdm/tasks.py", line 84, in runSearcher runSearcherForMediaType(mtm) File "/Servers/XDM/xdm/tasks.py", line 97, in runSearcherForMediaType log(u"Looking for %s" % ele) File "/Servers/XDM/xdm/classes.py", line 258, in str return '%s(%s)[%s] %s' % (self.type, self.mediaType, self.get_id(), self.getName()) File "/Servers/XDM/plugins/MediaTypeManager/TV-de_lad1337_tv-0_8/TV.py", line 54, in getName return "%se%02d %s" % (self.parent.getName(), self.number, self.title) AttributeError: 'NoneType' object has no attribute 'getName'"

MangaValk avatar Feb 12 '14 10:02 MangaValk

okay yeah i experienced that bug too ... the episode has no parent ... now season nor show attached ... why it got lost i dont know ...

my fix was to open the data.db in an sqlite browser find elements of type "Episode" that have no parent and delete them

in the develop branch i added a clean up function that deletes these kind of elements...

where they come from i don't know yet

lad1337 avatar Feb 12 '14 18:02 lad1337