Update push image

This commit is contained in:
FongMi 2024-06-03 10:43:29 +08:00
parent 25232edd0c
commit 15f94bc061
4 changed files with 4 additions and 2 deletions

View File

@ -9,6 +9,7 @@ import com.github.catvod.bean.Sub;
import com.github.catvod.bean.Vod; import com.github.catvod.bean.Vod;
import com.github.catvod.crawler.Spider; import com.github.catvod.crawler.Spider;
import com.github.catvod.net.OkHttp; import com.github.catvod.net.OkHttp;
import com.github.catvod.utils.Image;
import com.github.catvod.utils.Util; import com.github.catvod.utils.Util;
import java.io.File; import java.io.File;
@ -48,10 +49,10 @@ public class Push extends Spider {
private Vod vod(String url) { private Vod vod(String url) {
Vod vod = new Vod(); Vod vod = new Vod();
vod.setVodId(url); vod.setVodId(url);
vod.setVodPic(Image.PUSH);
vod.setTypeName("FongMi"); vod.setTypeName("FongMi");
vod.setVodName(url.startsWith("file://") ? new File(url).getName() : url); vod.setVodName(url.startsWith("file://") ? new File(url).getName() : url);
if (url.startsWith("http") && url.contains("#")) url = url.replace("#", "***"); if (url.startsWith("http") && url.contains("#")) url = url.replace("#", "***");
vod.setVodPic("https://pic.rmb.bdstatic.com/bjh/1d0b02d0f57f0a42201f92caba5107ed.jpeg");
String play = "播放$" + url; String play = "播放$" + url;
boolean thunder = Util.isThunder(url); boolean thunder = Util.isThunder(url);
vod.setVodPlayUrl(thunder ? play : TextUtils.join("$$$", Arrays.asList(play, play, play))); vod.setVodPlayUrl(thunder ? play : TextUtils.join("$$$", Arrays.asList(play, play, play)));

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +1 @@
528c76fdf519c0411b619b75032eacb7 981f96ca587242d475007855c5b33f56