lad1337 / XDM-main-plugin-repo

The official main Plugin Repository
20 stars 11 forks source link

Error during getElement of TheMovieDB (Default) #16

Closed schumi2004 closed 10 years ago

schumi2004 commented 10 years ago

Just popped up a few times.

DEBUG 2014-02-15 14:57:52.527560
Calling trakt url: http://api.trakt.tv/user/watchlist/movies.json/##apikey##/##username## DEBUG 2014-02-15 14:57:52.791551
Calling trakt url: http://api.trakt.tv/user/watchlist/shows.json/##apikey##/##username## INFO 2014-02-15 14:57:53.388937
Trakt Watchlist (Default) is looking for The Hobbit: T4 Premiere Special(151268) on TheMovieDB (Default) ERROR 2014-02-15 14:57:54.733468
Error during getElement of TheMovieDB (Default) Error: 'title'

Traceback (most recent call last): File "/volume1/@appstore/xdm/share/XDM/xdm/plugins/meta.py", line 160, in outer return run(_args, *_kwargs) File "/usr/local/xdm/var/plugins/Provider/TheMovieDB-de_lad1337_tmdb-0_14/TheMovieDB.py", line 113, in getElement self._createMovie(fakeRoot, mediaType, tmdbMovie) File "/usr/local/xdm/var/plugins/Provider/TheMovieDB-de_lad1337_tmdb-0_14/TheMovieDB.py", line 77, in _createMovie movie.setField('name', tmdbMovie.get_title(), self.tag) File "/usr/local/xdm/var/plugins/Provider/TheMovieDB-de_lad1337_tmdb-0_14/tmdb.py", line 214, in get_title return self.movies["title"] KeyError: 'title'

New value:False Traceback: Traceback (most recent call last): File "/volume1/@appstore/xdm/share/XDM/xdm/plugins/meta.py", line 160, in outer return run(_args, *_kwargs) File "/usr/local/xdm/var/plugins/Provider/TheMovieDB-de_lad1337_tmdb-0_14/TheMovieDB.py", line 113, in getElement self._createMovie(fakeRoot, mediaType, tmdbMovie) File "/usr/local/xdm/var/plugins/Provider/TheMovieDB-de_lad1337_tmdb-0_14/TheMovieDB.py", line 77, in _createMovie movie.setField('name', tmdbMovie.get_title(), self.tag) File "/usr/local/xdm/var/plugins/Provider/TheMovieDB-de_lad1337_tmdb-0_14/tmdb.py", line 214, in get_title return self.movies["title"] KeyError: 'title'

schumi2004 commented 10 years ago

Seems when enabled every few minutes provider TheMovieDB generates errors

lad1337 commented 10 years ago

It's behaving correctly

You have the movie "The Hobbit: T4 Premiere Special" in your trakt watchlist Now we try to get this movie information from themoviedb But either the provided is wrong / null (should not be searched I agree on that) Or the information we get from themoviedb is not sufficient (missing title) The movie db does not take this event into consideration and raises an exception Now XDM catches all errors in a plugin and returns a default value instead

That's why XDM does not halt but you see the error re appearing