From 3222b0ceddd1def56b5806872da2257411068a60 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 17 Feb 2021 09:22:58 -0600 Subject: [PATCH] Don't require index file in Firefox cache2. --- fanficfare/browsercache/firefoxcache2.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fanficfare/browsercache/firefoxcache2.py b/fanficfare/browsercache/firefoxcache2.py index 8333f836..4684320d 100644 --- a/fanficfare/browsercache/firefoxcache2.py +++ b/fanficfare/browsercache/firefoxcache2.py @@ -54,9 +54,6 @@ class FirefoxCache2(BaseBrowserCache): # logger.debug("\n\n1Starting cache check\n\n") if not os.path.isdir(cache_dir): return False - index_file = os.path.join(cache_dir, "index") - if not os.path.isfile(index_file): - return False try: ## check at least one entry file exists. for en_fl in glob.iglob(os.path.join(cache_dir, 'entries', '????????????????????????????????????????')): @@ -75,7 +72,7 @@ class FirefoxCache2(BaseBrowserCache): self.age_comp_time = time.time() - (self.age_limit*3600) def map_cache_keys(self): - """Scan index file and cache entries to save entries in this cache""" + """Scan cache entries to save entries in this cache""" ## scandir and checking age *before* parsing saves a ton of ## hits and time. self.count=0