Add mapping table file validity period
This commit is contained in:
@@ -504,9 +504,10 @@ def main():
|
||||
Path.home() / '.local' / 'share' / 'avdc' / f)
|
||||
map_tab = (fmd('mapping_actor.xml'), fmd('mapping_info.xml'), fmd('c_number.json'))
|
||||
for k,v in map_tab:
|
||||
if file_modification_days(str(v)) >= conf.mapping_table_validity():
|
||||
print("[+]Mapping Table Out of date! Remove",str(v))
|
||||
os.remove(str(v))
|
||||
if v.exists():
|
||||
if file_modification_days(str(v)) >= conf.mapping_table_validity():
|
||||
print("[+]Mapping Table Out of date! Remove", str(v))
|
||||
os.remove(str(v))
|
||||
res = parallel_download_files(((k, v) for k, v in map_tab if not v.exists()))
|
||||
for i, fp in enumerate(res, start=1):
|
||||
if fp and len(fp):
|
||||
|
||||
Reference in New Issue
Block a user