This commit is contained in:
Sanj 2011-09-03 20:05:29 +05:30
parent f548894d84
commit e1a85406d8

View File

@ -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()