Use imdbnumber as the movie_id
- Id
- de0ea5b368a032cdd8dc5af71f71452a9ae67f4b
- Author
- Caio
- Commit time
- 2014-07-19T17:22:07+02:00
Modified download_and_prepare_library.py
def download_original_thumbnail(movie):
global jsonclient
- movie_id = movie['movieid']
+ movie_id = movie['imdbnumber']
logger.debug("Processing movie id {}".format(movie['movieid']))
fd.write('var movies = ' + json.dumps(output, **kwargs) + ';')
def resize_thumbnail(movie):
- movie_id = movie['movieid']
+ movie_id = movie['imdbnumber']
original_thumbnail = os.path.join(THUMBNAIL_CACHE, "{}.jpg".format(movie_id))
final_thumbnail = os.path.join(THUMBNAIL_DIR, "{}.jpg".format(movie_id))
Modified app/js/models/movie.js
},
thumbnailUrl: function() {
- return "app/img/thumbs/" + this.get("id") + ".jpg";
+ return "app/img/thumbs/" + this.get("imdbnumber") + ".jpg";
},
imdbUrl: function() {