(String url)
| 36 | } |
| 37 | |
| 38 | private Vod vod(String url) { |
| 39 | Vod vod = new Vod(); |
| 40 | vod.setVodId(url); |
| 41 | vod.setVodPic(Image.PUSH); |
| 42 | vod.setTypeName("FongMi"); |
| 43 | vod.setVodName(url.startsWith("file://") ? new File(url).getName() : ""); |
| 44 | if (url.contains("://") && url.contains("#")) url = url.replace("#", "***"); |
| 45 | if (Util.isThunder(url)) { |
| 46 | vod.setVodPlayUrl(url); |
| 47 | vod.setVodPlayFrom("迅雷"); |
| 48 | } else if (url.contains("youtube.com")) { |
| 49 | vod.setVodPlayUrl(url); |
| 50 | vod.setVodPlayFrom("YouTube"); |
| 51 | } else if (url.contains("$")) { |
| 52 | vod.setVodPlayFrom("直連"); |
| 53 | vod.setVodPlayUrl(TextUtils.join("#", url.split("\n"))); |
| 54 | } else { |
| 55 | vod.setVodPlayUrl(TextUtils.join("$$$", Arrays.asList(url, url, url))); |
| 56 | vod.setVodPlayFrom(TextUtils.join("$$$", Arrays.asList("直連", "嗅探", "解析"))); |
| 57 | } |
| 58 | return vod; |
| 59 | } |
| 60 | |
| 61 | private List<Sub> getSubs(String url) { |
| 62 | List<Sub> subs = new ArrayList<>(); |
no test coverage detected