Commit 75097c1a authored by fuzzle's avatar fuzzle

enddate validation out of html parsing is hellish - correct some edgecases

parent 03df6078
......@@ -84,7 +84,7 @@ try:
xxdateend = soup.find_all('time')[1].attrs['datetime']
# if day is not the same , ignore enddate
# checked by 9th character in 2019-10-15T10....
if xxdateend[8:9] != xxdate[8:9]:
if xxdateend[0:9] != xxdate[0:9]:
xxdateend = xxdate
odder = 1
print "being carefull with rdate, no enddate given"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment