diff --git a/espial/config.py b/espial/config.py index 75b1074..1c79022 100644 --- a/espial/config.py +++ b/espial/config.py @@ -26,6 +26,7 @@ def __init__(self): self.port = 5002 # port to run Espial on self.host = "127.0.0.1" self.IGNORE = [] # sub-directories to ignore when crawling + self.ALLOWED_ORIGINS = [] # websites allowed to fetch data from Espial def get_item_id(self, item): """ diff --git a/espial/load.py b/espial/load.py index 11ada98..2015c87 100644 --- a/espial/load.py +++ b/espial/load.py @@ -50,6 +50,7 @@ def load_mesh(config): doc._.id in items and doc._.hash == items[doc._.id]["hash"] and not excluded_path + and Path(doc._.path).exists() ): docs.append(doc) else: