Only update cache if media directories are specified

This commit is contained in:
Et0h 2016-06-02 14:37:59 +01:00
parent b1c8c9f5b2
commit a8d3c3ccc8

View File

@ -1601,7 +1601,7 @@ class FileSwitchManager(object):
self.infoUpdated()
def updateInfo(self):
if not self.currentlyUpdating:
if not self.currentlyUpdating and self.mediaDirectories:
threads.deferToThread(self._updateInfoThread).addCallback(lambda x: self.checkForFileSwitchUpdate())
def setFilenameWatchlist(self, unfoundFilenames):