Do library update right after adding new movie
This commit is contained in:
1 parent
bf782f499a
commit
441a7cdc9b
1 file changed
+1
-6
@@ -120,17 +120,12 @@ class Scanner(Plugin):
|
|||||||
|
|
||||||
# Add release
|
# Add release
|
||||||
fireEvent('release.add', group = group)
|
fireEvent('release.add', group = group)
|
||||||
|
fireEvent('library.update', identifier = group['library'].get('identifier'))
|
||||||
# Add identifier for library update
|
|
||||||
update_after.append(group['library'].get('identifier'))
|
|
||||||
|
|
||||||
# Break if CP wants to shut down
|
# Break if CP wants to shut down
|
||||||
if self.shuttingDown():
|
if self.shuttingDown():
|
||||||
break
|
break
|
||||||
|
|
||||||
for identifier in update_after:
|
|
||||||
fireEvent('library.update', identifier = identifier)
|
|
||||||
|
|
||||||
db.remove()
|
db.remove()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user