Shutdown event
This commit is contained in:
@@ -30,6 +30,7 @@ class Searcher(Plugin):
|
||||
).all()
|
||||
|
||||
for movie in movies:
|
||||
|
||||
self.single(movie.to_dict(deep = {
|
||||
'profile': {'types': {'quality': {}}},
|
||||
'releases': {'status': {}, 'quality': {}},
|
||||
@@ -37,6 +38,10 @@ class Searcher(Plugin):
|
||||
'files': {}
|
||||
}))
|
||||
|
||||
# Break if CP wants to shut down
|
||||
if self.shuttingDown():
|
||||
break
|
||||
|
||||
def single(self, movie):
|
||||
|
||||
downloaded_status = fireEvent('status.get', 'downloaded', single = True)
|
||||
|
||||
Reference in New Issue
Block a user