Autodownload optional pattern check to separate function to allow plugins

This commit is contained in:
shortcutme 2016-11-07 23:39:04 +01:00
parent d1ad7e0850
commit 83b3dc8fbe
2 changed files with 9 additions and 5 deletions

View file

@ -939,6 +939,10 @@ class Site(object):
self.log.debug("Queried hashfield from %s peers" % queried)
return queried
# Returns if the optional file is need to be downloaded or not
def isDownloadable(self, inner_path):
return self.settings.get("autodownloadoptional")
def delete(self):
self.settings["serving"] = False
self.saveSettings()