mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48:51 -05:00
* fix conversion issues by returning a Long value
This commit is contained in:
parent
42966e8c68
commit
89ab081415
@ -632,12 +632,12 @@ public class MediaBindingBean {
|
|||||||
|
|
||||||
@Define("seconds")
|
@Define("seconds")
|
||||||
public Integer getSeconds() {
|
public Integer getSeconds() {
|
||||||
return Math.round(getDuration() / 1000f);
|
return (int) (getDuration() / 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Define("minutes")
|
@Define("minutes")
|
||||||
public Integer getDurationInMinutes() {
|
public Integer getDurationInMinutes() {
|
||||||
return Math.round(getDuration() / 60000f);
|
return (int) (getDuration() / 60000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Define("media")
|
@Define("media")
|
||||||
|
Loading…
Reference in New Issue
Block a user