Răsfoiți Sursa

make should_extract take config and uri as args

Nick Sweeting 1 an în urmă
părinte
comite
4634cd6c8e
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      archivebox/abx/archivebox/base_extractor.py

+ 1 - 1
archivebox/abx/archivebox/base_extractor.py

@@ -53,7 +53,7 @@ class BaseExtractor(BaseHook):
     def get_output_path(self, snapshot) -> Path:
         return Path(self.id.lower())
 
-    def should_extract(self, snapshot) -> bool:
+    def should_extract(self, uri: str, config: dict | None=None) -> bool:
         try:
             assert self.detect_installed_binary().version
         except Exception: