I setup a script a while back using the
imdbpy module for python which simply allows you to search and pull movie data from the
imdb website. One specific way in which I was using it was to pull the cover url and download it locally to save a copy of the image for local access. This recently broke about a week or so ago and I just got around to digging around for a fix. I couldn't find any information about it online, but after inspecting the html parser from the imdbpy module I noticed it was finding the coverurl by parsing the html img tag on the site with the alt tag of "cover". I suspect imdb used to tag the cover like this, but recently moved to using the alt tag of the title of the movie instead. So I modified the
/usr/lib/python2.3/site-packages/imdb/parser/http/movieParser.py file on my system and changed the following code on line 381 (or just search for cover):
elif alttex == 'cover':
to
elif alttex == self.__movie_data.get('title').lower():
Saved the file and everything works like a charm again.
posted at: 02:54 | path: /general | permanent link to this entry