|
|
|
|
@ -278,6 +278,7 @@ public class SiteViewModel extends ViewModel { |
|
|
|
|
ArrayList<String> ids = new ArrayList<>(); |
|
|
|
|
if (site.getCategories().isEmpty()) for (Vod item : result.getList()) ids.add(item.getVodId()); |
|
|
|
|
else for (Vod item : result.getList()) if (site.getCategories().contains(item.getTypeName())) ids.add(item.getVodId()); |
|
|
|
|
if (ids.isEmpty()) return result.clear(); |
|
|
|
|
ArrayMap<String, String> params = new ArrayMap<>(); |
|
|
|
|
params.put("ac", site.getType() == 0 ? "videolist" : "detail"); |
|
|
|
|
params.put("ids", TextUtils.join(",", ids)); |
|
|
|
|
|