Fix bili duration

pull/81/head
FongMi 2 years ago
parent 77066ec9dd
commit 37da58d5bf
  1. 5
      app/src/main/java/com/github/catvod/bean/bili/Resp.java
  2. BIN
      jar/custom_spider.jar
  3. 2
      jar/custom_spider.jar.md5

@ -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…
Cancel
Save