Remove YingShi Advertisement

This commit is contained in:
唐三 2023-09-17 20:07:14 +08:00
parent 241fd8416a
commit 4d09c13b0f
3 changed files with 4 additions and 3 deletions

View File

@ -20,6 +20,7 @@ import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
import org.jsoup.select.Elements; import org.jsoup.select.Elements;
import java.io.ByteArrayInputStream;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -114,7 +115,7 @@ public class YingShi extends Spider {
@Override @Override
public String playerContent(String flag, String id, List<String> vipFlags) throws Exception { public String playerContent(String flag, String id, List<String> vipFlags) throws Exception {
String proxyUrl = Proxy.getUrl() + "?do=yingshi&url=" + id; String proxyUrl = Proxy.getUrl() + "?do=yingshi&url=" + id;
return Result.get().url(proxyUrl).m3u8().string(); return Result.get().url(proxyUrl).string();
} }
@Override @Override
@ -191,7 +192,7 @@ public class YingShi extends Spider {
Object[] result = new Object[3]; Object[] result = new Object[3];
result[0] = 200; result[0] = 200;
result[1] = "application/octet-stream"; result[1] = "application/octet-stream";
result[2] = content; result[2] = new ByteArrayInputStream(content.getBytes());
return result; return result;
} }
} }

Binary file not shown.

View File

@ -1 +1 @@
d68a08e865a5a48fc3033b7466090cc9 e99f254a76be4612aaf4f8e6eef5dae1