Check title when movie exists only
thanks ipsec
This commit is contained in:
1 parent
ca7ae89c85
commit
ac96b33611
1 file changed
+6
-5
@@ -242,12 +242,13 @@ class MoviePlugin(Plugin):
|
|||||||
fireEvent('notify.frontend', type = 'movie.busy.%s' % id, data = True)
|
fireEvent('notify.frontend', type = 'movie.busy.%s' % id, data = True)
|
||||||
movie = db.query(Movie).filter_by(id = id).first()
|
movie = db.query(Movie).filter_by(id = id).first()
|
||||||
|
|
||||||
# Get current selected title
|
|
||||||
default_title = ''
|
|
||||||
for title in movie.library.titles:
|
|
||||||
if title.default: default_title = title.title
|
|
||||||
|
|
||||||
if movie:
|
if movie:
|
||||||
|
|
||||||
|
# Get current selected title
|
||||||
|
default_title = ''
|
||||||
|
for title in movie.library.titles:
|
||||||
|
if title.default: default_title = title.title
|
||||||
|
|
||||||
fireEventAsync('library.update', identifier = movie.library.identifier, default_title = default_title, force = True, on_complete = self.createOnComplete(id))
|
fireEventAsync('library.update', identifier = movie.library.identifier, default_title = default_title, force = True, on_complete = self.createOnComplete(id))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user