Support live home

This commit is contained in:
FongMi 2023-01-09 14:17:00 +08:00
parent aab8ef635e
commit 215aed5d5b
5 changed files with 32 additions and 3 deletions

View File

@ -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) {
}
}
}

Binary file not shown.

View File

@ -1 +1 @@
4afbcea55791f6a2b1c8ac89745eca68
a1c200856bade9fe50617a55807e1747

View File

@ -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": [
{

View File

@ -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": "推送",