mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
* make sure {duration} is an Integer value
This commit is contained in:
parent
8f5e6d37c9
commit
4b0fb75339
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user