| | |
| | | tag = "评分:" + score; |
| | | } else if (videoType.getId() == VideoConstant.VIDEO_CATEGORY_DIANSHIJU || videoType.getId() == VideoConstant.VIDEO_CATEGORY_DONGMAN) { |
| | | //电视剧,动漫 |
| | | if (series.getSeriesCount().trim().equalsIgnoreCase(series.getCurrentNum().trim())) { |
| | | if (series.getCurrentNum() != null && series.getSeriesCount().trim().equalsIgnoreCase(series.getCurrentNum().trim())) { |
| | | tag = series.getSeriesCount() + "集全"; |
| | | } else { |
| | | tag = "更新至" + series.getCurrentNum() + "集"; |
| | |
| | | public static String getPPTVCode(String pptvUid) { |
| | | if (StringUtil.isNullOrEmpty(pptvUid)) |
| | | return null; |
| | | return AESUtil.encrypt(pptvUid + "#" + System.currentTimeMillis()); |
| | | return AESUtil.encrypt(pptvUid + "#" + System.currentTimeMillis()).replace("/", "_").replace("=", "-"); |
| | | } |
| | | |
| | | public static String getUidFromPPTVUid(String pptvUid) { |
| | |
| | | * @return |
| | | */ |
| | | public static PPTVCodeInfo decryptPPTVCode(String code) { |
| | | code = code.replace("_", "/").replace("-", "="); |
| | | String info = AESUtil.decrypt(code); |
| | | if (StringUtil.isNullOrEmpty(info)) { |
| | | return null; |
| | |
| | | public static String getPlayUrl(PPTVSeries series, PPTVProgram program) { |
| | | //programtype 电影-3 其他-2 |
| | | return String.format("https://acmd.api.pptv.com/2021/bwysdqmovie_thrid_h5.html?cid=%s&vid=%s&programtype=%s", series.getSeriesCode(), program.getProgramCode(), series.getProgramType().contains("电影") ? 3 : 2); |
| | | // return String.format(" http://vip.pptv.com/activity/2021/pg_bwysdqmovie?cid=%s&vid=%s&programtype=%s", series.getSeriesCode(), program.getProgramCode(), series.getProgramType().contains("电影") ? 3 : 2); |
| | | } |
| | | |
| | | |