[trollvids] convert duration to an int

This commit is contained in:
Andrew "Akari" Alexeyew 2015-12-02 06:06:48 +02:00
parent e0bd46eedc
commit 16afcbaa5f

View File

@ -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":