fix duration parsing (sometimes there is a ';' instead of ':' (wtf))

This commit is contained in:
Romain Bignon 2011-03-27 12:03:44 +02:00
commit b5a92c6ab2

View file

@ -42,7 +42,7 @@ class IndexPage(BasePage):
title = title_el.text.strip()
time_span = select(span, 'span.thumbtime span', 1)
time_txt = time_span.text.strip()
time_txt = time_span.text.strip().replace(';', ':')
if time_txt == 'N/A':
minutes, seconds = 0, 0
elif ':' in time_txt: