Return more info for in_wanted and in_library. fixes #175

This commit is contained in:
Ruud
2012-04-29 17:31:12 +02:00
parent f6a7655f9a
commit 0b5dbd202d
2 changed files with 4 additions and 4 deletions
@@ -326,9 +326,9 @@ Block.Search.Item = new Class({
'src': self.info.images.poster[0]
}) : null,
self.info.in_wanted ? new Element('span.in_wanted', {
'text': 'Already in wanted list: ' + self.info.in_wanted.label
'text': 'Already in wanted list: ' + self.info.in_wanted.profile.label
}) : (self.info.in_library ? new Element('span.in_library', {
'text': 'Already in library: ' + self.info.in_library.label
'text': 'Already in library: ' + self.info.in_library.profile.label
}) : null),
self.title_select = new Element('select', {
'name': 'title'
@@ -55,11 +55,11 @@ class MovieResultModifier(Plugin):
for movie in l.movies:
if movie.status_id == active_status['id']:
temp['in_wanted'] = movie.profile.to_dict()
temp['in_wanted'] = fireEvent('movie.get', movie.id, single = True)
for release in movie.releases:
if release.status_id == done_status['id']:
temp['in_library'] = release.quality.to_dict()
temp['in_library'] = fireEvent('movie.get', movie.id, single = True)
except:
log.error('Tried getting more info on searched movies: %s' % traceback.format_exc())