1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

* make sure {duration} is an Integer value

This commit is contained in:
Reinhard Pointner 2015-10-20 07:43:23 +00:00
parent 8f5e6d37c9
commit 4b0fb75339

View File

@ -627,7 +627,7 @@ public class MediaBindingBean {
@Define("duration")
public Long getDuration() {
return new Double(getMediaInfo(StreamKind.General, 0, "Duration")).longValue();
return (long) Double.parseDouble(getMediaInfo(StreamKind.General, 0, "Duration"));
}
@Define("seconds")