diff --git a/README.md b/README.md index 74b3502b..9b9a2cef 100644 --- a/README.md +++ b/README.md @@ -19,5 +19,10 @@ jsSpider 参考 https://github.com/jadehh/TVSpider [![Star History Chart](https://api.star-history.com/svg?repos=lushunming/AndroidCatVodSpider&type=Date)](https://star-history.com/#lushunming/AndroidCatVodSpider&Date) --- + +## 公众号 +关注公众号,获取最新更新。 +[![pAW8wwV.jpg](https://s21.ax1x.com/2024/11/20/pAW8wwV.jpg)](https://imgse.com/i/pAW8wwV) + ## 备注 该项目仅为自己自用开发,如果发现bug,可以提issues,但是基本不接受新需求(除非我感兴趣的新需求)。 diff --git a/app/src/main/java/com/github/catvod/spider/Introduce.java b/app/src/main/java/com/github/catvod/spider/Introduce.java new file mode 100644 index 00000000..34017d94 --- /dev/null +++ b/app/src/main/java/com/github/catvod/spider/Introduce.java @@ -0,0 +1,32 @@ +package com.github.catvod.spider; + +import android.content.Context; +import com.github.catvod.bean.Result; +import com.github.catvod.bean.Vod; +import com.github.catvod.crawler.Spider; + +import java.util.ArrayList; +import java.util.List; + +public class Introduce extends Spider { + + + @Override + public void init(Context context, String extend) throws Exception { + super.init(context, extend); + + } + + @Override + public String homeContent(boolean filter) throws Exception { + List list = new ArrayList<>(); + String pic = "https://s21.ax1x.com/2024/11/20/pAW8wwV.jpg"; + String name = "请关注公众号获取最新更新"; + list.add(new Vod("https://s21.ax1x.com/2024/11/20/pAW8wwV.jpg", name, pic)); + String pic2 = "https://s21.ax1x.com/2024/11/20/pAW8wwV.jpg"; + String name2 = "本接口不收费,请不要付费,谢谢!"; + list.add(new Vod("https://s21.ax1x.com/2024/11/20/pAW8wwV.jpg", name2, pic2)); + return Result.string(list); + } + +} \ No newline at end of file diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 6030ed10..ff5f0ba0 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/jar/custom_spider.jar.md5 b/jar/custom_spider.jar.md5 index 5b62c823..1118d1d6 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -e6675006390d7f2339b9d557a21e9d7a +c7d0776cefeaaa128a7f543f310ecd23 diff --git a/json/index.json b/json/index.json index 2c2399c9..54609b4a 100644 --- a/json/index.json +++ b/json/index.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;e6675006390d7f2339b9d557a21e9d7a", + "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;c7d0776cefeaaa128a7f543f310ecd23", "lives": [ { "name": "直播", @@ -35,6 +35,12 @@ } ], "sites": [ + { + "key": "Introduce", + "name": "注意事项", + "type": 3, + "api": "csp_Introduce" + }, { "key": "Douban", "name": " 豆瓣仅推荐", diff --git a/json/index1.json b/json/index1.json index f91100d0..b3bd534b 100644 --- a/json/index1.json +++ b/json/index1.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;e6675006390d7f2339b9d557a21e9d7a", + "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;c7d0776cefeaaa128a7f543f310ecd23", "lives": [ { "name": "直播ipv6", diff --git a/json/index2.json b/json/index2.json index a4052948..501b1cd2 100644 --- a/json/index2.json +++ b/json/index2.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;e6675006390d7f2339b9d557a21e9d7a", + "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;c7d0776cefeaaa128a7f543f310ecd23", "lives": [ { "name": "直播ipv6", diff --git a/json/test.json b/json/test.json index 0033d26f..e3d1b66c 100644 --- a/json/test.json +++ b/json/test.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;e6675006390d7f2339b9d557a21e9d7a", + "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;c7d0776cefeaaa128a7f543f310ecd23", "lives": [ { "name": "直播",