Just recently, whenever I try this: i = IMDb() result = i.search_movie(show) imdb_show = result[0] i.update(imdb_show,'episodes') try: title = imdb_show['episodes'][season][episode]['title'] except: title = "Episode " + episode
I get this error (same code but from a different script): Traceback (most recent call last): File "/media/media/MEDIA/VIDEO/TV SHOWS/.scripts/towatch.py", line 34, in <module> print "###",getIMDBEpisodeName("The Sopranos",'01','02') File "/media/media/MEDIA/VIDEO/TV SHOWS/.scripts/towatch.py", line 12, in getIMDBEpisodeName result = i.search_movie(show) File "/var/lib/python-support/python2.5/imdb/__init__.py", line 205, in search_movie res = self._search_movie(title, results) File "/var/lib/python-support/python2.5/imdb/parser/http/__init__.py", line 331, in _search_movie results=results)['data'] File "/var/lib/python-support/python2.5/imdb/parser/http/searchMovieParser.py", line 196, in parse return ParserBase.parse(self, cont) File "/var/lib/python-support/python2.5/imdb/parser/http/utils.py", line 534, in parse self.feed(html_string) File "/usr/lib/python2.5/sgmllib.py", line 99, in feed self.goahead(0) File "/usr/lib/python2.5/sgmllib.py", line 138, in goahead k = self.parse_endtag(i) File "/usr/lib/python2.5/sgmllib.py", line 315, in parse_endtag self.finish_endtag(tag) File "/usr/lib/python2.5/sgmllib.py", line 369, in finish_endtag self.handle_endtag(tag, method) File "/var/lib/python-support/python2.5/imdb/parser/http/utils.py", line 499, in handle_endtag method() File "/var/lib/python-support/python2.5/imdb/parser/http/searchMovieParser.py", line 233, in end_td self._k[self.kind]['analyze_f'](title, canonical=1)) File "/var/lib/python-support/python2.5/imdb/utils.py", line 367, in analyze_title raise IMDbParserError, 'invalid title: "%s"' % original_t imdb._exceptions.IMDbParserError: invalid title: "" No matter what I query. What am I doing wrong? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Imdbpy-devel mailing list Imdbpy-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-devel