Fix bili duration

This commit is contained in:
FongMi 2024-05-13 13:30:53 +08:00
parent 77066ec9dd
commit 37da58d5bf
3 changed files with 5 additions and 2 deletions

View File

@ -63,7 +63,10 @@ public class Resp {
} }
public String getDuration() { 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() { public String getLength() {

Binary file not shown.

View File

@ -1 +1 @@
2dd1047cb29daf7d351201a1cca49ae5 ab9462dae7ab186527c41a163641cf14