Fix history bug

pull/21/head
FongMi 4 years ago
parent 0e5abcd0fa
commit 2b2af1cadb
  1. 4
      app/src/main/java/com/fongmi/android/tv/bean/History.java

@ -87,11 +87,11 @@ public class History {
}
public String getSiteKey() {
return getKey().split("_")[0];
return getKey().substring(0, getKey().lastIndexOf("_"));
}
public String getVodId() {
return getKey().split("_")[1];
return getKey().substring(getKey().lastIndexOf("_") + 1);
}
public Vod.Flag getFlag() {

Loading…
Cancel
Save