handly empty subs
This commit is contained in:
parent
5e2b3cf448
commit
2bd1c7d657
1 changed files with 7 additions and 6 deletions
|
@ -105,6 +105,7 @@ def info(id, timeout=cache_timeout):
|
|||
if not duration:
|
||||
duration = '2'
|
||||
end = start + float(duration)
|
||||
if t.firstChild:
|
||||
text = t.firstChild.data
|
||||
subs.append({
|
||||
'in': start,
|
||||
|
|
Loading…
Reference in a new issue