added indeed suport

start extracting date from "vor X days" where time = today-X
This commit is contained in:
2024-07-23 14:55:37 +02:00
parent 8d59514ddf
commit 42d11c1c8d
5 changed files with 80 additions and 18 deletions

View File

@@ -95,12 +95,13 @@ def finder(results,item,**modes):
found = False
for results in result:
child = results.find(GETCHILDREN)
log(child)
log("[finder] search for '",GETCHILDREN,"' in: ",child)
if child != None and found == False:
log("CHILD: ",child.text.strip())
log("CHILD text strip: ",child.text.strip())
found = True
content.append(child.text.strip())
if found == False:
log("[finder] No matching Child found: ",child)
content.append("CHILD_NOT_FOUND: " + GETCHILDREN)
elif LOCATION_CLEANUP==1:
@@ -114,6 +115,7 @@ def finder(results,item,**modes):
elif SWAPDATE==1:
content.append(DateCHToUS(result2.text.strip()))
elif CLEANDATE==1:
log("[finder] pre cleandate:",result2.text.strip)
content.append(jobs_ch_clean_date(result2.text.strip()))
else:
log(result2)