add time
This commit is contained in:
parent
f548894d84
commit
e1a85406d8
|
@ -10,10 +10,12 @@ def do():
|
||||||
for t in tapes:
|
for t in tapes:
|
||||||
fullTxt = t.strip()
|
fullTxt = t.strip()
|
||||||
titleReg = r'Title: (.*?)\n'
|
titleReg = r'Title: (.*?)\n'
|
||||||
|
timeReg = r'Time: (.*?)\n'
|
||||||
|
time = findRe(fullTxt, time)
|
||||||
outfile = "tapes/%d.html" % (counter,)
|
outfile = "tapes/%d.html" % (counter,)
|
||||||
title = findRe(fullTxt, titleReg)
|
title = findRe(fullTxt, titleReg)
|
||||||
print title
|
print title
|
||||||
indexHtml += "<a target='_blank' href='%s'>%s</a><br />\n" % (outfile, title,)
|
indexHtml += "<a target='_blank' href='%s'>%s</a><br />Time: %s<br/><br />\n" % (outfile, title, time,)
|
||||||
out = open(outfile, "w")
|
out = open(outfile, "w")
|
||||||
out.write("<pre>%s</pre>" % (fullTxt,))
|
out.write("<pre>%s</pre>" % (fullTxt,))
|
||||||
out.close()
|
out.close()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user