Skip to content

Commit e2d5b23

Browse files
jonah-sullivanmtwebster
authored andcommitted
ensures video duration works when a float
Some files have duration that is a float, causes ValueError: invalid literal for int()
1 parent 6e80a2b commit e2d5b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nemo-media-columns/nemo-media-columns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def file_is_one_of_these(mimetype_list):
266266
pass
267267

268268
try:
269-
duration = int(track['duration'])
269+
duration = int(float(track['duration']))
270270
except:
271271
pass
272272

0 commit comments

Comments
 (0)