From 08fac3e131abc7f6f99532c730714185c9271b4b Mon Sep 17 00:00:00 2001 From: j Date: Thu, 22 May 2014 00:50:59 +0200 Subject: [PATCH] scan book folder for changes --- oml/downloads.py | 2 ++ oml/server.py | 1 + 2 files changed, 3 insertions(+) diff --git a/oml/downloads.py b/oml/downloads.py index 15be1d4..6ee0d0f 100644 --- a/oml/downloads.py +++ b/oml/downloads.py @@ -35,6 +35,8 @@ class Downloads(Thread): def run(self): time.sleep(2) with self._app.app_context(): + import item.scan + item.scan.run_scan() while self._running: if state.online: self.download_next() diff --git a/oml/server.py b/oml/server.py index 3d27104..c78e4b1 100644 --- a/oml/server.py +++ b/oml/server.py @@ -15,6 +15,7 @@ import websocket import state import node.server import oxtornado + from item.icons import IconHandler from item.handlers import EpubHandler