Reindex after full scan. fix #3492

This commit is contained in:
Ruud
2014-06-23 20:46:26 +02:00
parent b933cd8718
commit 9f07dd5a21
+5
View File
@@ -4,6 +4,7 @@ import sys
import time
import traceback
from couchpotato import get_db
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent, addEvent, fireEventAsync
from couchpotato.core.helpers.encoding import sp
@@ -179,6 +180,10 @@ class Manage(Plugin):
if self.shuttingDown():
break
if not self.shuttingDown():
db = get_db()
db.reindex()
Env.prop(last_update_key, time.time())
except:
log.error('Failed updating library: %s', (traceback.format_exc()))