IMDB KeyError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Entertainer Media Center |
Triaged
|
Medium
|
Unassigned |
Bug Description
After restarting Entertainer following Bug #357223 this it the Python output. Some videos had been index but less than 1/4 of them.
Python Output:
jamie@zander:
Entertainer backend starting...
** Message: don't know how to handle audio/x-wma, wmaversion=(int)3, bitrate=
Exception in thread IndexerThread:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/home/
cache.
File "/home/
self.
File "/home/
self.
File "/home/
thumbnailer
File "/home/
img = self._play_
File "/home/
self.
AttributeError: 'VideoThumbnailer' object has no attribute 'set_state_
Exception in thread Video metadata search thread:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/home/
rating = round(float(
File "/var/lib/
rawData = self.data[key]
KeyError: 'rating'
Exception in thread Video metadata search thread:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/home/
rating = round(float(
File "/var/lib/
rawData = self.data[key]
KeyError: 'rating'
Exception in thread Video metadata search thread:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/home/
rating = round(float(
File "/var/lib/
rawData = self.data[key]
KeyError: 'rating'
Exception in thread Video metadata search thread:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/home/
rating = round(float(
File "/var/lib/
rawData = self.data[key]
KeyError: 'rating'
Jamie, I've seen the IMDb error that you mentioned. The problem exists because the python-imdbpy library is broken and no longer returns the rating key. We need to move away from IMDb because the broken library also violates IMDb's TOS.
The other traceback that you've submitted is interesting. I looked into the history, and I don't think that set_state_blocking has ever existed in our trunk. It's a piece of the Elisa code that never moved over. I'm not sure how we should handle that (Elisa no longer uses the thumbnailer code in the form that we have it. I think that they've moved it to some plugin that I can't seem to find).