Commit 58775de2 authored by echel0n's avatar echel0n

Added code to save shows from cache on shutdown.

parent 21ed71d2
......@@ -576,6 +576,11 @@ class Core(object):
self.log.debug("Shutting down ANIDB connection")
self.adba_connection.stop()
# save shows
self.log.info('Saving all shows to the database')
for show in self.shows:
show.save()
# save settings
self.config.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment