[trollvids] convert duration to an int
This commit is contained in:
parent
e0bd46eedc
commit
16afcbaa5f
@ -42,7 +42,7 @@ class TrollvidsIE(InfoExtractor):
|
|||||||
elif tag == "filehd":
|
elif tag == "filehd":
|
||||||
hdformats.append({"url": val})
|
hdformats.append({"url": val})
|
||||||
elif tag == "duration":
|
elif tag == "duration":
|
||||||
info["duration"] = float(val)
|
info["duration"] = int(float(val))
|
||||||
elif tag == "image":
|
elif tag == "image":
|
||||||
info["thumbnail"] = val
|
info["thumbnail"] = val
|
||||||
elif tag == "title":
|
elif tag == "title":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user