Auto download optional files command line argument

This commit is contained in:
shortcutme 2017-07-31 14:39:21 +02:00
parent ac230219ee
commit 4cd393e4d8
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 3 additions and 0 deletions

View file

@ -96,6 +96,8 @@ class Site(object):
"own": False, "serving": True, "permissions": [],
"added": int(time.time()), "optional_downloaded": 0, "size_optional": 0
} # Default
if config.download_optional == "auto":
self.settings["autodownloadoptional"] = True
# Add admin permissions to homepage
if self.address == config.homepage and "ADMIN" not in self.settings["permissions"]: