Fix bili duration
This commit is contained in:
parent
77066ec9dd
commit
37da58d5bf
|
|
@ -63,7 +63,10 @@ public class Resp {
|
|||
}
|
||||
|
||||
public String getDuration() {
|
||||
return TextUtils.isEmpty(duration) ? getLength() : duration.split(":")[0] + "分鐘";
|
||||
if (TextUtils.isEmpty(duration)) return getLength();
|
||||
if (duration.contains(":")) return duration.split(":")[0] + "分鐘";
|
||||
if (Integer.parseInt(duration) < 60) return duration + "秒";
|
||||
return Integer.parseInt(duration) / 60 + "分鐘";
|
||||
}
|
||||
|
||||
public String getLength() {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
2dd1047cb29daf7d351201a1cca49ae5
|
||||
ab9462dae7ab186527c41a163641cf14
|
||||
|
|
|
|||
Loading…
Reference in New Issue