| | |
| | | indexOf("(") : infos.get("首播"). |
| | | |
| | | length())); |
| | | if (infos.get("上映日期") != null) |
| | | if (infos.get("上映日期") != null) { |
| | | show.setRelaseDate(infos.get("上映日期"). |
| | | |
| | | substring(0, infos.get("上映日期"). |
| | |
| | | indexOf("(") : infos.get("上映日期"). |
| | | |
| | | length())); |
| | | } |
| | | |
| | | |
| | | if (year == null && show.getRelaseDate() != null) { |
| | |
| | | |
| | | show.setYear(year.replace("(", ""). |
| | | replace(")", "")); |
| | | |
| | | if (show.getYear() != null && show.getRelaseDate() == null) { |
| | | show.setRelaseDate(show.getYear() + "-01-01"); |
| | | } |
| | | |
| | | show.setId(show.getUrl(). |
| | | |
| | |
| | | List<HanmiShow> list = new ArrayList<>(); |
| | | for (HanmiShow show : showList) { |
| | | try { |
| | | if (!show.getUrl().startsWith("http")) { |
| | | show.setUrl("https://www.hmtv.me" + show.getUrl()); |
| | | } |
| | | list.add(parseShowDetail(show)); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |