diff --git a/app/src/main/java/com/github/catvod/spider/Live.java b/app/src/main/java/com/github/catvod/spider/Live.java new file mode 100644 index 00000000..26dc7c77 --- /dev/null +++ b/app/src/main/java/com/github/catvod/spider/Live.java @@ -0,0 +1,21 @@ +package com.github.catvod.spider; + +import android.app.Activity; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; + +import com.github.catvod.crawler.Spider; + +public class Live extends Spider { + + @Override + public void init(Context context, String extend) { + super.init(context, extend); + try { + Activity activity = Init.getActivity(); + activity.startActivity(new Intent().setComponent(new ComponentName(activity, "com.fongmi.android.tv.ui.activity.LiveActivity"))); + } catch (Throwable ignored) { + } + } +} diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 1bfb4c11..0e664e5a 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 bde1ce18..932f57a2 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -4afbcea55791f6a2b1c8ac89745eca68 +a1c200856bade9fe50617a55807e1747 diff --git a/json/adult.json b/json/adult.json index 3f095bbe..d0059e5c 100644 --- a/json/adult.json +++ b/json/adult.json @@ -1,5 +1,5 @@ { - "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;4afbcea55791f6a2b1c8ac89745eca68", + "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a1c200856bade9fe50617a55807e1747", "wallpaper": "https://gao.chuqiuyu.tk", "lives": [ { diff --git a/json/config.json b/json/config.json index 888d8966..2ee9e7cc 100644 --- a/json/config.json +++ b/json/config.json @@ -1,5 +1,5 @@ { - "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;4afbcea55791f6a2b1c8ac89745eca68", + "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a1c200856bade9fe50617a55807e1747", "wallpaper": "http://www.kf666888.cn/api/tvbox/img", "lives": [ { @@ -154,6 +154,14 @@ "filterable": 0, "ext": "http://我不是.肥猫.love:63/token.php" }, + { + "key": "Live", + "name": "直播", + "type": 3, + "api": "csp_Live", + "searchable": 0, + "filterable": 0 + }, { "key": "push_agent", "name": "推送",