fix duration parsing (sometimes there is a ';' instead of ':' (wtf))
This commit is contained in:
parent
4515541639
commit
b5a92c6ab2
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue