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