From: Duncan W. <du...@fr...> - 2010-05-17 15:25:48
|
On 26/04/2010 09:07, Paul Harper wrote: > Hi, > > After a couple of solid weekends I have just about everything working how I want it, but the IMDB plugin that I just can't work out. I'm using Freevo 1.9.0 on Ubuntu Karmic Koala, I have patched the IMDB plugin and am using html5lib as described elsewhere on these pages. This allowed me to progress to the point of being able to choose from a list of films to parse information from. After selecting the correct film and getting a message along the lines of 'retrieving information' Freevo crashes with this message: > > event 'MENU_SELECT' crashed > > In the terminal it says: > > Traceback (most recent call last): > File "/usr/lib/python2.6/dist-packages/freevo/main.py", line 306, in eventhandler > app.eventhandler(event) > File "/usr/share/pyshared/freevo/menu.py", line 842, in eventhandler > self._handle_play_item(menu, event) > File "/usr/share/pyshared/freevo/menu.py", line 654, in _handle_play_item > action(arg=arg, menuw=self) > File "/usr/share/pyshared/freevo/menu.py", line 106, in select > self.function(arg=self.arg, menuw=menuw) > File "/usr/share/pyshared/freevo/video/plugins/imdb.py", line 227, in imdb_create_fxd > fxd.getIMDBid(arg[0], self.season, self.episode) > File "/usr/share/pyshared/freevo/util/fxdimdb.py", line 308, in getIMDBid > self.parse_data(idpage, id, episodeid, season, episode) > File "/usr/share/pyshared/freevo/util/fxdimdb.py", line 431, in parse_data > soup.feed(r.read()) > TypeError: 'NoneType' object is not callable > > and from the log file: > > 2010-04-26 03:42:06,750 DEBUG fxdimdb.py (273): id=0930083 season= episode= > 2010-04-26 03:42:06,750 DEBUG fxdimdb.py (279): url=u'http://www.imdb.com/title/tt0930083/episodes' > 2010-04-26 03:42:07,945 DEBUG fxdimdb.py (879): id=u'0930083' > 2010-04-26 03:42:07,946 DEBUG fxdimdb.py (292): url=u'http://www.imdb.com/title/tt0930083' > 2010-04-26 03:42:10,930 DEBUG fxdimdb.py (412): items=rating:7.6/10 (778 votes) > 2010-04-26 03:42:10,930 DEBUG fxdimdb.py (412): items=language:Japanese > 2010-04-26 03:42:10,931 DEBUG fxdimdb.py (412): items=plot:A documentary filmmaker explores seemingly unrelated paranormal incidents connected by the legend of an ancient demon called the "kagutaba." | > 2010-04-26 03:42:10,931 DEBUG fxdimdb.py (412): items=tagline:Everybody died. > 2010-04-26 03:42:10,934 DEBUG fxdimdb.py (412): items=release_date:20 August 2005 (Japan) > 2010-04-26 03:42:10,934 DEBUG fxdimdb.py (412): items=title:Noroi > 2010-04-26 03:42:10,935 DEBUG fxdimdb.py (412): items=plot_keywords:Demon / Fake Documentary / 2000s / Dam / Pigeon > 2010-04-26 03:42:10,935 DEBUG fxdimdb.py (412): items=country:Japan > 2010-04-26 03:42:10,936 DEBUG fxdimdb.py (412): items=aspect_ratio:1.85 : 1 > 2010-04-26 03:42:10,936 DEBUG fxdimdb.py (412): items=also_known_as:"Noroi the Curse" - Hong Kong > 2010-04-26 03:42:10,937 DEBUG fxdimdb.py (412): items=year:2005 > 2010-04-26 03:42:10,937 DEBUG fxdimdb.py (412): items=genre:Horror > 2010-04-26 03:42:10,937 DEBUG fxdimdb.py (412): items=runtime:Japan:115 min > 2010-04-26 03:42:10,938 DEBUG fxdimdb.py (413): id="0930083", dvd="0" > 2010-04-26 03:42:10,938 DEBUG fxdimdb.py (414): {'rating': u'7.6/10 (778 votes)', u'language': u'Japanese', 'plot': u'A documentary filmmaker explores seemingly unrelated paranormal incidents connected by the legend of an ancient demon called the "kagutaba." |', 'tagline': u'Everybody died.', u'release_date': u'20 August 2005 (Japan)', 'title': u'Noroi', u'plot_keywords': u'Demon / Fake Documentary / 2000s / Dam / Pigeon', u'country': u'Japan', u'aspect_ratio': u'1.85 : 1', u'also_known_as': u'"Noroi the Curse" - Hong Kong', 'year': u'2005', 'genre': u'Horror', 'runtime': u'Japan:115 min'} > 2010-04-26 03:42:14,393 DEBUG fxdimdb.py (426): url="http://us.imdb.com/title/tt0930083/dvd" > Traceback (most recent call last): > File "/usr/lib/python2.6/dist-packages/freevo/main.py", line 306, in eventhandler > app.eventhandler(event) > File "/usr/share/pyshared/freevo/menu.py", line 842, in eventhandler > self._handle_play_item(menu, event) > File "/usr/share/pyshared/freevo/menu.py", line 654, in _handle_play_item > action(arg=arg, menuw=self) > File "/usr/share/pyshared/freevo/menu.py", line 106, in select > self.function(arg=self.arg, menuw=menuw) > File "/usr/share/pyshared/freevo/video/plugins/imdb.py", line 227, in imdb_create_fxd > fxd.getIMDBid(arg[0], self.season, self.episode) > File "/usr/share/pyshared/freevo/util/fxdimdb.py", line 308, in getIMDBid > self.parse_data(idpage, id, episodeid, season, episode) > File "/usr/share/pyshared/freevo/util/fxdimdb.py", line 431, in parse_data > soup.feed(r.read()) > TypeError: 'NoneType' object is not callable > > Can anyone help? I'm sorry if this is obvious, I've spent a lot of time working other problems out as I'm new to freevo and linux and I want to advance my understanding at least a little, but this one has me stuck. > > Cheers. Should be fixed in svn. Duncan |