Autodownload optional pattern check to separate function to allow plugins
This commit is contained in:
parent
d1ad7e0850
commit
83b3dc8fbe
2 changed files with 9 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue