diff --git a/couchpotato/core/plugins/movie/static/search.js b/couchpotato/core/plugins/movie/static/search.js index 5530505..67f9755 100644 --- a/couchpotato/core/plugins/movie/static/search.js +++ b/couchpotato/core/plugins/movie/static/search.js @@ -223,6 +223,14 @@ Block.Search.Item = new Class({ 'text': info.year }) : null ) + ).adopt( + self.rating = info.rating && info.rating.imdb.length > 0 && info.rating.imdb[0] != '0' ? new Element('span.rating', { + 'text': info.rating.imdb[0] + '/10' + }) : null + ).adopt( + self.genre = info.genres && info.genres.length > 0 ? new Element('span.genres', { + 'text': self.getGenres(info.genres) + }) : null ) ) ) @@ -241,6 +249,17 @@ Block.Search.Item = new Class({ self.alternative_titles.include(alternative); }, + getGenres: function(data){ + var self = this; + var genres = []; + + for (var i=0;i