|
|
|
|
@ -82,7 +82,8 @@ public class Vod { |
|
|
|
|
private Site site; |
|
|
|
|
|
|
|
|
|
public static List<Vod> arrayFrom(String str) { |
|
|
|
|
Type listType = new TypeToken<List<Vod>>() {}.getType(); |
|
|
|
|
Type listType = new TypeToken<List<Vod>>() { |
|
|
|
|
}.getType(); |
|
|
|
|
List<Vod> items = new Gson().fromJson(str, listType); |
|
|
|
|
return items == null ? Collections.emptyList() : items; |
|
|
|
|
} |
|
|
|
|
@ -167,6 +168,10 @@ public class Vod { |
|
|
|
|
return getVodRemarks().isEmpty() ? View.GONE : View.VISIBLE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean shouldSearch() { |
|
|
|
|
return getVodId().isEmpty() || getVodId().startsWith("msearch:"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setVodFlags() { |
|
|
|
|
String[] playFlags = getVodPlayFrom().split("\\$\\$\\$"); |
|
|
|
|
String[] playUrls = getVodPlayUrl().split("\\$\\$\\$"); |
|
|
|
|
|