Private GIT

Skip to content
Snippets Groups Projects
Commit 0b5dbd20 authored by Ruud's avatar Ruud
Browse files

Return more info for in_wanted and in_library. fixes #175

parent f6a7655f
Branches
Tags
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment