From db579a6ddb866d2e33072c0259454148a7f6d71f Mon Sep 17 00:00:00 2001 From: FongMi Date: Wed, 9 Nov 2022 15:11:42 +0800 Subject: [PATCH 1/3] Update Force.java --- .../main/java/com/fongmi/android/tv/player/source/Force.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/fongmi/android/tv/player/source/Force.java b/app/src/main/java/com/fongmi/android/tv/player/source/Force.java index 18cf13e97..69fa94372 100644 --- a/app/src/main/java/com/fongmi/android/tv/player/source/Force.java +++ b/app/src/main/java/com/fongmi/android/tv/player/source/Force.java @@ -37,7 +37,7 @@ public class Force { private void check() throws Exception { File file = FileUtil.getCacheFile("libmitv.so"); - String url = "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/TV/release/release/libmitv.so"; + String url = "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/TV/release/other/libmitv.so"; if (!file.exists()) FileUtil.write(file, OKHttp.newCall(url).execute().body().bytes()); } From 37c699af76fe1d09c5250165e902c90c62942141 Mon Sep 17 00:00:00 2001 From: FongMi Date: Wed, 9 Nov 2022 15:28:16 +0800 Subject: [PATCH 2/3] Add json demo --- other/live-offline.json | 31 +++++++++++++++++++++++++++++++ other/live-online.json | 31 +++++++++++++++++++++++++++++++ other/vod-offline.json | 33 +++++++++++++++++++++++++++++++++ other/vod-online.json | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 other/live-offline.json create mode 100644 other/live-online.json create mode 100644 other/vod-offline.json create mode 100644 other/vod-online.json diff --git a/other/live-offline.json b/other/live-offline.json new file mode 100644 index 000000000..50516abd3 --- /dev/null +++ b/other/live-offline.json @@ -0,0 +1,31 @@ +{ + "lives": [ + { + "group": "redirect", + "channels": [ + { + "name": "redirect", + "urls": [ + "proxy://do=live&type=txt&ext=ZmlsZTovL0Rvd25sb2FkL3JlZGlyZWN0LnR4dA==" + ] + } + ] + }, + { + "name": "TXT", + "type": 0, + "url": "file://Download/live.txt", + "epg": "http://epg.51zmt.top:8000/api/diyp/?ch={name}&date={date}", + "logo": "", + "ua": "" + }, + { + "name": "M3U", + "type": 0, + "url": "file://Download/live.m3u", + "epg": "https://epg.112114.xyz/?ch={name}", + "logo": "", + "ua": "" + } + ] +} \ No newline at end of file diff --git a/other/live-online.json b/other/live-online.json new file mode 100644 index 000000000..88e245abb --- /dev/null +++ b/other/live-online.json @@ -0,0 +1,31 @@ +{ + "lives": [ + { + "group": "redirect", + "channels": [ + { + "name": "redirect", + "urls": [ + "proxy://do=live&type=txt&ext=aHR0cHM6Ly9naXRodWIuY29tL3JlZGlyZWN0LnR4dA==" + ] + } + ] + }, + { + "name": "TXT", + "type": 0, + "url": "https://github.com/live.txt", + "epg": "http://epg.51zmt.top:8000/api/diyp/?ch={name}&date={date}", + "logo": "", + "ua": "" + }, + { + "name": "M3U", + "type": 0, + "url": "https://github.com/live.m3u", + "epg": "https://epg.112114.xyz/?ch={name}", + "logo": "", + "ua": "" + } + ] +} \ No newline at end of file diff --git a/other/vod-offline.json b/other/vod-offline.json new file mode 100644 index 000000000..913b74d5f --- /dev/null +++ b/other/vod-offline.json @@ -0,0 +1,33 @@ +{ + "spider": "file://Download/custom_spider.jar", + "sites": [ + { + "key": "one", + "name": "One", + "type": 3, + "api": "csp_Csp", + "searchable": 1, + "filterable": 1, + "ext": "file://Download/one.json" + }, + { + "key": "two", + "name": "Two", + "type": 3, + "api": "csp_Csp", + "searchable": 1, + "filterable": 1, + "ext": "file://Download/two.json" + }, + { + "key": "extend", + "name": "Extend", + "type": 3, + "api": "csp_Csp", + "searchable": 1, + "filterable": 1, + "ext": "file://Download/extend.json", + "jar": "file://Download/extend.jar" + } + ] +} \ No newline at end of file diff --git a/other/vod-online.json b/other/vod-online.json new file mode 100644 index 000000000..78f774984 --- /dev/null +++ b/other/vod-online.json @@ -0,0 +1,33 @@ +{ + "spider": "https://github.com/custom_spider.jar", + "sites": [ + { + "key": "one", + "name": "One", + "type": 3, + "api": "csp_Csp", + "searchable": 1, + "filterable": 1, + "ext": "https://github.com/one.json" + }, + { + "key": "two", + "name": "Two", + "type": 3, + "api": "csp_Csp", + "searchable": 1, + "filterable": 1, + "ext": "https://github.com/two.json" + }, + { + "key": "extend", + "name": "Extend", + "type": 3, + "api": "csp_Csp", + "searchable": 1, + "filterable": 1, + "ext": "https://github.com/extend.json", + "jar": "https://github.com/extend.jar" + } + ] +} \ No newline at end of file From 66a9a4144cefefa7e016f7d693aeb97c3d12e058 Mon Sep 17 00:00:00 2001 From: FongMi Date: Wed, 9 Nov 2022 15:32:08 +0800 Subject: [PATCH 3/3] Update README.md Signed-off-by: FongMi --- README.md | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 1a672b6f2..2fadb8628 100644 --- a/README.md +++ b/README.md @@ -7,36 +7,12 @@ https://github.com/CatVodTVOfficial/CatVodTVJarLoader [TV-Java](https://github.com/FongMi/TV/blob/main/release/leanback-java.apk?raw=true "TV-Java") [TV-Python](https://github.com/FongMi/TV/blob/main/release/leanback-python.apk?raw=true "TV-Python") -### Local Config Example - file://cat.json +### Config Example +[Vod-Online](other/vod-online.json) +[Vod-Offline](other/vod-offline.json) +[Live-Online](other/live-online.json) +[Live-Offline](other/live-offline.json) -```json -{ - "spider":"spider.jar", - "sites":[ - { - "key":"one", - "name":"One", - "type":3, - "api":"csp_Csp", - "searchable":1, - "quickSearch":1, - "filterable":1, - "ext":"file://one.json" - }, - { - "key":"two", - "name":"Two", - "type":3, - "api":"csp_XPath", - "searchable":1, - "quickSearch":1, - "filterable":1, - "ext":"two.json" - } - ] -} -``` ### Subtitle Format In playerContent put "sub"