added indeed suport
start extracting date from "vor X days" where time = today-X
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user