From 753e9bf644e82b30ac897d502a11bc698345f3ea Mon Sep 17 00:00:00 2001
From: Shuyu-Zhang <624269674@qq.com>
Date: Thu, 30 Apr 2026 02:18:27 +0000
Subject: [PATCH] =?UTF-8?q?*=20=E6=9B=B4=E6=96=B0TVConfig=E5=92=8COpenConf?=
=?UTF-8?q?ig?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
18_open_config.json | 122 +
18_tv_config.json | 485 +
README.md | 95 +-
code | 1 +
js/4kysxz.js | 238 +
js/aiyingshi.js | 299 +
js/alipansou.js | 229 +
js/aliyunpanshare.js | 227 +
js/asianx.js | 183 +
js/audiomack.js | 258 +
js/base_spider.js | 85 +
js/bilibili.js | 571 +
js/bookan.js | 152 +
js/bqg_open.js | 268 +
js/changzhang.js | 333 +
js/ciliduo.js | 191 +
js/cilixiong.js | 253 +
js/cntv.js | 364 +
js/copymanga.js | 233 +
js/dj0898_book_open.js | 215 +
js/doll.js | 246 +
js/douban.js | 636 +
js/dubo.js | 75 +
js/dygangs.js | 280 +
js/dyttbt.js | 214 +
js/feifan.js | 96 +
js/feifan18.js | 96 +
js/freeok.js | 333 +
js/gitcafe.js | 231 +
js/haiwaikan.js | 156 +
js/hanxiucao.js | 625 +
js/haoxi.js | 273 +
js/hscangku.js | 153 +
js/huya.js | 709 +
js/ikanbot.js | 319 +
js/jable.js | 317 +
js/jiafeimao.js | 295 +
js/jianpian.js | 482 +
js/jiujiuliu.js | 174 +
js/kankan70.js | 308 +
js/kuaikan.js | 444 +
js/liangzi.js | 93 +
js/liangzi18.js | 93 +
js/liujiushu.js | 260 +
js/lovemovie.js | 328 +
js/lovemovie18.js | 133 +
js/mhdq.js | 181 +
js/mp4movie.js | 282 +
js/mxanime.js | 429 +
js/nangua.js | 389 +
js/newvision.js | 262 +
js/nivod.js | 243 +
js/nivod_18.js | 242 +
js/pan_search.js | 149 +
js/pipixia.js | 459 +
js/push_agent.js | 115 +
js/sehuatang.js | 251 +
js/sp360.js | 672 +
js/spider.js | 902 +
js/star.js | 290 +
js/testSpider.js | 133 +
js/tiantian.js | 286 +
js/ttkan.js | 343 +
js/vodSpider.js | 192 +
js/weixine.js | 322 +
js/wogg.js | 314 +
js/xb6v.js | 304 +
js/xgcartoon.js | 143 +
js/yiqikan.js | 268 +
lib/TextDecoder.js | 190 +
lib/TextEncoder.js | 107 +
lib/ali.js | 86 +
lib/ali_api.js | 677 +
lib/ali_object.js | 516 +
lib/big5.js | 154 +
lib/bilibili_ASS_Danmaku_Downloader.js | 19 +
lib/book.js | 76 +
lib/cat.js | 15158 +++++++++++
lib/cloud.js | 107 +
lib/danmuSpider.js | 188 +
lib/encoding-indexes.js | 37 +
lib/encodings.js | 460 +
lib/euc-jp.js | 166 +
lib/euc-kr.js | 124 +
lib/ffm3u8_open.js | 480 +
lib/gb18030.js | 251 +
lib/gbk_us.js | 32194 +++++++++++++++++++++++
lib/hls.js | 940 +
lib/iso-2022-jp.js | 441 +
lib/log.js | 86 +
lib/misc.js | 129 +
lib/nivid_object.js | 255 +
lib/pipiXiaObject.js | 146 +
lib/quark.js | 66 +
lib/quark_api.js | 313 +
lib/quark_object.js | 98 +
lib/shift-jis.js | 170 +
lib/similarity.js | 53 +
lib/single-byte.js | 86 +
lib/table.js | 119 +
lib/tencentDanmu.js | 84 +
lib/text_decoder_index.js | 118 +
lib/text_decoder_indexes.js | 153 +
lib/text_decoder_utils.js | 180 +
lib/utf16.js | 139 +
lib/utf8.js | 208 +
lib/utils.js | 385 +
lib/vod.js | 62 +
lib/x-user-defined.js | 56 +
open_config.json | 395 +
resources/ali.jpg | Bin 0 -> 12227 bytes
resources/alipay.jpg | Bin 0 -> 131057 bytes
resources/cili.jpg | Bin 0 -> 14614 bytes
resources/dygang.jpg | Bin 0 -> 71212 bytes
resources/dytt.jpg | Bin 0 -> 173794 bytes
resources/error.png | Bin 0 -> 6312 bytes
resources/liangzi.jpg | Bin 0 -> 74892 bytes
resources/push.jpg | Bin 0 -> 13518 bytes
resources/wechat.jpg | Bin 0 -> 66190 bytes
tmp | 1 +
tv_config.json | 697 +
121 files changed, 75711 insertions(+), 1 deletion(-)
create mode 100644 18_open_config.json
create mode 100644 18_tv_config.json
create mode 160000 code
create mode 100644 js/4kysxz.js
create mode 100644 js/aiyingshi.js
create mode 100644 js/alipansou.js
create mode 100644 js/aliyunpanshare.js
create mode 100644 js/asianx.js
create mode 100644 js/audiomack.js
create mode 100644 js/base_spider.js
create mode 100644 js/bilibili.js
create mode 100644 js/bookan.js
create mode 100644 js/bqg_open.js
create mode 100644 js/changzhang.js
create mode 100644 js/ciliduo.js
create mode 100644 js/cilixiong.js
create mode 100644 js/cntv.js
create mode 100644 js/copymanga.js
create mode 100644 js/dj0898_book_open.js
create mode 100644 js/doll.js
create mode 100644 js/douban.js
create mode 100644 js/dubo.js
create mode 100644 js/dygangs.js
create mode 100644 js/dyttbt.js
create mode 100644 js/feifan.js
create mode 100644 js/feifan18.js
create mode 100644 js/freeok.js
create mode 100644 js/gitcafe.js
create mode 100644 js/haiwaikan.js
create mode 100644 js/hanxiucao.js
create mode 100644 js/haoxi.js
create mode 100644 js/hscangku.js
create mode 100644 js/huya.js
create mode 100644 js/ikanbot.js
create mode 100644 js/jable.js
create mode 100644 js/jiafeimao.js
create mode 100644 js/jianpian.js
create mode 100644 js/jiujiuliu.js
create mode 100644 js/kankan70.js
create mode 100644 js/kuaikan.js
create mode 100644 js/liangzi.js
create mode 100644 js/liangzi18.js
create mode 100644 js/liujiushu.js
create mode 100644 js/lovemovie.js
create mode 100644 js/lovemovie18.js
create mode 100644 js/mhdq.js
create mode 100644 js/mp4movie.js
create mode 100644 js/mxanime.js
create mode 100644 js/nangua.js
create mode 100644 js/newvision.js
create mode 100644 js/nivod.js
create mode 100644 js/nivod_18.js
create mode 100644 js/pan_search.js
create mode 100644 js/pipixia.js
create mode 100644 js/push_agent.js
create mode 100644 js/sehuatang.js
create mode 100644 js/sp360.js
create mode 100644 js/spider.js
create mode 100644 js/star.js
create mode 100644 js/testSpider.js
create mode 100644 js/tiantian.js
create mode 100644 js/ttkan.js
create mode 100644 js/vodSpider.js
create mode 100644 js/weixine.js
create mode 100644 js/wogg.js
create mode 100644 js/xb6v.js
create mode 100644 js/xgcartoon.js
create mode 100644 js/yiqikan.js
create mode 100644 lib/TextDecoder.js
create mode 100644 lib/TextEncoder.js
create mode 100644 lib/ali.js
create mode 100644 lib/ali_api.js
create mode 100644 lib/ali_object.js
create mode 100644 lib/big5.js
create mode 100644 lib/bilibili_ASS_Danmaku_Downloader.js
create mode 100644 lib/book.js
create mode 100644 lib/cat.js
create mode 100644 lib/cloud.js
create mode 100644 lib/danmuSpider.js
create mode 100644 lib/encoding-indexes.js
create mode 100644 lib/encodings.js
create mode 100644 lib/euc-jp.js
create mode 100644 lib/euc-kr.js
create mode 100644 lib/ffm3u8_open.js
create mode 100644 lib/gb18030.js
create mode 100644 lib/gbk_us.js
create mode 100644 lib/hls.js
create mode 100644 lib/iso-2022-jp.js
create mode 100644 lib/log.js
create mode 100644 lib/misc.js
create mode 100644 lib/nivid_object.js
create mode 100644 lib/pipiXiaObject.js
create mode 100644 lib/quark.js
create mode 100644 lib/quark_api.js
create mode 100644 lib/quark_object.js
create mode 100644 lib/shift-jis.js
create mode 100644 lib/similarity.js
create mode 100644 lib/single-byte.js
create mode 100644 lib/table.js
create mode 100644 lib/tencentDanmu.js
create mode 100644 lib/text_decoder_index.js
create mode 100644 lib/text_decoder_indexes.js
create mode 100644 lib/text_decoder_utils.js
create mode 100644 lib/utf16.js
create mode 100644 lib/utf8.js
create mode 100644 lib/utils.js
create mode 100644 lib/vod.js
create mode 100644 lib/x-user-defined.js
create mode 100644 open_config.json
create mode 100644 resources/ali.jpg
create mode 100644 resources/alipay.jpg
create mode 100644 resources/cili.jpg
create mode 100644 resources/dygang.jpg
create mode 100644 resources/dytt.jpg
create mode 100644 resources/error.png
create mode 100644 resources/liangzi.jpg
create mode 100644 resources/push.jpg
create mode 100644 resources/wechat.jpg
create mode 160000 tmp
create mode 100644 tv_config.json
diff --git a/18_open_config.json b/18_open_config.json
new file mode 100644
index 00000000..1616bfcf
--- /dev/null
+++ b/18_open_config.json
@@ -0,0 +1,122 @@
+{
+ "video": {
+ "sites": [
+ {
+ "key": "sehuatang",
+ "name": "🔞┃色花堂BT┃🔞",
+ "api": "./js/sehuatang.js",
+ "timeout": 30,
+ "ext": {
+ "box": "CatOpen"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "hanxiucao",
+ "name": "🔞┃含羞草┃🔞",
+ "api": "./js/hanxiucao.js",
+ "timeout": 30,
+ "ext": {
+ "box": "CatOpen"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "lovemovie18",
+ "name": "🔞┃爱情电影网18+┃🔞",
+ "api": "./js/lovemovie18.js",
+ "timeout": 30,
+ "ext": {
+ "box": "CatOpen"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "jiujiuliu",
+ "name": "🔞┃九九六影视┃🔞",
+ "api": "./js/jiujiuliu.js",
+ "timeout": 30,
+ "ext": {
+ "box": "CatOpen"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "ciliduo",
+ "name": "🔞┃磁力多BT┃🔞",
+ "api": "./js/ciliduo.js",
+ "timeout": 30,
+ "ext": {
+ "box": "CatOpen"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "asianx",
+ "name": "🔞┃海外宅┃🔞",
+ "api": "./js/asianx.js",
+ "timeout": 30,
+ "ext": {
+ "box": "CatOpen"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "nivod_18",
+ "name": "🔞┃泥视频18+┃🔞",
+ "api": "./js/nivod_18.js",
+ "timeout": 30,
+ "ext": {
+ "box": "CatOpen"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "hscangku",
+ "name": "🔞┃黄色仓库┃🔞",
+ "api": "./js/hscangku.js",
+ "timeout": 30,
+ "ext": {
+ "box": "CatOpen"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "jable",
+ "name": "🔞┃Jable┃🔞",
+ "api": "./js/jable.js",
+ "timeout": 30,
+ "ext": {
+ "box": "CatOpen"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "doll",
+ "name": "🔞┃玩偶姐姐┃🔞",
+ "api": "./js/doll.js",
+ "timeout": 30,
+ "ext": {
+ "box": "CatOpen"
+ },
+ "playerType": 0,
+ "type": 3
+ }
+ ]
+ },
+ "read": {
+ "sites": []
+ },
+ "pan": {
+ "sites": []
+ }
+}
\ No newline at end of file
diff --git a/18_tv_config.json b/18_tv_config.json
new file mode 100644
index 00000000..dd7a5a57
--- /dev/null
+++ b/18_tv_config.json
@@ -0,0 +1,485 @@
+{
+ "sites": [
+ {
+ "key": "sehuatang",
+ "name": "🔞┃色花堂BT┃🔞",
+ "api": "./js/sehuatang.js",
+ "timeout": 30,
+ "ext": {
+ "box": "TVBox"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "hanxiucao",
+ "name": "🔞┃含羞草┃🔞",
+ "api": "./js/hanxiucao.js",
+ "timeout": 30,
+ "ext": {
+ "box": "TVBox"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "lovemovie18",
+ "name": "🔞┃爱情电影网18+┃🔞",
+ "api": "./js/lovemovie18.js",
+ "timeout": 30,
+ "ext": {
+ "box": "TVBox"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "jiujiuliu",
+ "name": "🔞┃九九六影视┃🔞",
+ "api": "./js/jiujiuliu.js",
+ "timeout": 30,
+ "ext": {
+ "box": "TVBox"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "ciliduo",
+ "name": "🔞┃磁力多BT┃🔞",
+ "api": "./js/ciliduo.js",
+ "timeout": 30,
+ "ext": {
+ "box": "TVBox"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "asianx",
+ "name": "🔞┃海外宅┃🔞",
+ "api": "./js/asianx.js",
+ "timeout": 30,
+ "ext": {
+ "box": "TVBox"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "nivod_18",
+ "name": "🔞┃泥视频18+┃🔞",
+ "api": "./js/nivod_18.js",
+ "timeout": 30,
+ "ext": {
+ "box": "TVBox"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "hscangku",
+ "name": "🔞┃黄色仓库┃🔞",
+ "api": "./js/hscangku.js",
+ "timeout": 30,
+ "ext": {
+ "box": "TVBox"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "jable",
+ "name": "🔞┃Jable┃🔞",
+ "api": "./js/jable.js",
+ "timeout": 30,
+ "ext": {
+ "box": "TVBox"
+ },
+ "playerType": 0,
+ "type": 3
+ },
+ {
+ "key": "doll",
+ "name": "🔞┃玩偶姐姐┃🔞",
+ "api": "./js/doll.js",
+ "timeout": 30,
+ "ext": {
+ "box": "TVBox"
+ },
+ "playerType": 0,
+ "type": 3
+ }
+ ],
+ "ijk": [
+ {
+ "group": "软解码",
+ "options": [
+ {
+ "category": 4,
+ "name": "opensles",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "overlay-format",
+ "value": "842225234"
+ },
+ {
+ "category": 4,
+ "name": "framedrop",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "soundtouch",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "start-on-prepared",
+ "value": "1"
+ },
+ {
+ "category": 1,
+ "name": "http-detect-range-support",
+ "value": "0"
+ },
+ {
+ "category": 1,
+ "name": "fflags",
+ "value": "fastseek"
+ },
+ {
+ "category": 2,
+ "name": "skip_loop_filter",
+ "value": "48"
+ },
+ {
+ "category": 4,
+ "name": "reconnect",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "max-buffer-size",
+ "value": "5242880"
+ },
+ {
+ "category": 4,
+ "name": "enable-accurate-seek",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-auto-rotate",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-handle-resolution-change",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-hevc",
+ "value": "0"
+ },
+ {
+ "category": 1,
+ "name": "dns_cache_timeout",
+ "value": "600000000"
+ }
+ ]
+ },
+ {
+ "group": "硬解码",
+ "options": [
+ {
+ "category": 4,
+ "name": "opensles",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "overlay-format",
+ "value": "842225234"
+ },
+ {
+ "category": 4,
+ "name": "framedrop",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "soundtouch",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "start-on-prepared",
+ "value": "1"
+ },
+ {
+ "category": 1,
+ "name": "http-detect-range-support",
+ "value": "0"
+ },
+ {
+ "category": 1,
+ "name": "fflags",
+ "value": "fastseek"
+ },
+ {
+ "category": 2,
+ "name": "skip_loop_filter",
+ "value": "48"
+ },
+ {
+ "category": 4,
+ "name": "reconnect",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "max-buffer-size",
+ "value": "5242880"
+ },
+ {
+ "category": 4,
+ "name": "enable-accurate-seek",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-auto-rotate",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-handle-resolution-change",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-hevc",
+ "value": "1"
+ },
+ {
+ "category": 1,
+ "name": "dns_cache_timeout",
+ "value": "600000000"
+ }
+ ]
+ }
+ ],
+ "ads": [
+ "wan.51img1.com",
+ "iqiyi.hbuioo.com",
+ "vip.ffzyad.com",
+ "https://lf1-cdn-tos.bytegoofy.com/obj/tos-cn-i-dy/455ccf9e8ae744378118e4bd289288dd",
+ "static-mozai.4gtv.tv",
+ "s3t3d2y8.afcdn.net",
+ "4gtvfreepcvod-cds.cdn.hinet.net"
+ ],
+ "rules": [
+ {
+ "name": "星星",
+ "hosts": [
+ "aws.ulivetv.net"
+ ],
+ "regex": [
+ "#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:8,[\\s\\S]*?#EXT-X-DISCONTINUITY"
+ ]
+ },
+ {
+ "name": "量子廣告",
+ "hosts": [
+ "vip.lz",
+ "hd.lz"
+ ],
+ "regex": [
+ "#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:6.433333,[\\s\\S]*?#EXT-X-DISCONTINUITY",
+ "#EXTINF.*?\\s+.*?1o.*?\\.ts\\s+"
+ ]
+ },
+ {
+ "name": "非凡廣告",
+ "hosts": [
+ "vip.ffzy",
+ "hd.ffzy"
+ ],
+ "regex": [
+ "#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:6.666667,[\\s\\S]*?#EXT-X-DISCONTINUITY",
+ "#EXTINF.*?\\s+.*?1o.*?\\.ts\\s+"
+ ]
+ },
+ {
+ "name": "火山嗅探",
+ "hosts": [
+ "huoshan.com"
+ ],
+ "regex": [
+ "item_id="
+ ]
+ },
+ {
+ "name": "抖音嗅探",
+ "hosts": [
+ "douyin.com"
+ ],
+ "regex": [
+ "is_play_url="
+ ]
+ }
+ ],
+ "doh": [
+ {
+ "name": "Google",
+ "url": "https://dns.google/dns-query",
+ "ips": [
+ "8.8.4.4",
+ "8.8.8.8"
+ ]
+ },
+ {
+ "name": "Cloudflare",
+ "url": "https://cloudflare-dns.com/dns-query",
+ "ips": [
+ "1.1.1.1",
+ "1.0.0.1",
+ "2606:4700:4700::1111",
+ "2606:4700:4700::1001"
+ ]
+ },
+ {
+ "name": "AdGuard",
+ "url": "https://dns.adguard.com/dns-query",
+ "ips": [
+ "94.140.14.140",
+ "94.140.14.141"
+ ]
+ },
+ {
+ "name": "DNSWatch",
+ "url": "https://resolver2.dns.watch/dns-query",
+ "ips": [
+ "84.200.69.80",
+ "84.200.70.40"
+ ]
+ },
+ {
+ "name": "Quad9",
+ "url": "https://dns.quad9.net/dns-quer",
+ "ips": [
+ "9.9.9.9",
+ "149.112.112.112"
+ ]
+ }
+ ],
+ "parses": [
+ {
+ "name": "聚合",
+ "type": 3,
+ "url": "Demo"
+ },
+ {
+ "name": "线路1",
+ "type": 0,
+ "url": "https://jx.xmflv.com/?url=",
+ "ext": {
+ "header": {
+ "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57"
+ }
+ }
+ },
+ {
+ "name": "线路2",
+ "type": 0,
+ "url": "https://jx.quankan.app/?url=",
+ "ext": {
+ "header": {
+ "user-agent": "Mozilla/5.0 (Linux; Android 13; V2049A Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36"
+ }
+ }
+ },
+ {
+ "name": "线路3",
+ "type": 0,
+ "url": "https://jx.yparse.com/index.php?url=",
+ "ext": {
+ "header": {
+ "user-agent": "Mozilla/5.0 (Linux; Android 13; V2049A Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36"
+ }
+ }
+ },
+ {
+ "name": "线路4",
+ "type": 0,
+ "url": "https://jx.jsonplayer.com/player/?url=",
+ "ext": {
+ "header": {
+ "user-agent": "Mozilla/5.0 (Linux; Android 13; V2049A Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36"
+ }
+ }
+ },
+ {
+ "name": "线路5",
+ "type": 0,
+ "url": "https://jx.aidouer.net/?url=",
+ "ext": {
+ "header": {
+ "user-agent": "Mozilla/5.0 (Linux; Android 13; V2049A Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36",
+ "referer": "https://jiejie.uk/"
+ }
+ }
+ },
+ {
+ "name": "线路6",
+ "type": 0,
+ "url": "https://jx.777jiexi.com/player/?url="
+ },
+ {
+ "name": "线路7",
+ "type": 0,
+ "url": "https://www.8090g.cn/?url="
+ },
+ {
+ "name": "线路8",
+ "type": 0,
+ "url": "https://jx.yangtu.top?url="
+ },
+ {
+ "name": "线路9",
+ "type": 0,
+ "url": "https://jx.m3u8.tv/jiexi/?url="
+ },
+ {
+ "name": "线路10",
+ "type": 0,
+ "url": "https://www.ckplayer.vip/jiexi/?url="
+ }
+ ],
+ "lives": [
+ {
+ "name": "live",
+ "type": 0,
+ "url": "https://gh.con.sh/https://github.com/jadehh/LiveSpider/blob/main/live/live.txt",
+ "playerType": 1,
+ "ua": "okhttp/3.15",
+ "epg": "http://epg.112114.xyz/?ch={name}&date={date}",
+ "logo": "https://epg.112114.xyz/logo/{name}.png"
+ }
+ ],
+ "wallpaper": "https://api.likepoems.com/img/bing"
+}
\ No newline at end of file
diff --git a/README.md b/README.md
index 5ab8f742..0651a4d4 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,94 @@
-# tvbox_source
\ No newline at end of file
+# CatVodOpen和TvBox
+
+## 食用前阅读
+ 授人以鱼不如授人以渔,本仓意指在教会大家学会Spider,也欢迎大家提ISSUE,一起学习一起进步。
+ 以下资源不能保证内容的合法性、准确性、完整性和有效性,请根据情况自行判断。
+仅用于测试和学习研究,禁止用于商业用途,不得将其用于违反国家、地区、组织等的法律法规或相关规定的其他用途。
+使用任何第三方硬件、软件、所造成的一切后果由使用的个人或组织承担,与本文内容无关。
+所有直接或间接使用本内容的个人和组织,应 24 小时内完成学习和研究,并及时删除本文内容。
+所有基于本内容的源代码,进行的任何修改,为其他个人或组织的自发行为,与本内容没有任何直接或间接的关系,所造成的一切后果亦与本内容和本管理者无关。
+本管理者保留随时更改或补充此免责声明的权利。一旦使用、复制、转载、发布、修改了本文内容,则视为您已接受此免责声明。否则后果自负。
+本接口无公众号、无盈利、无引流、免费分享给小白使用,请勿轻信他人,谨防上当受骗。
+
+[使用教程见Wiki](https://github.com/jadehh/TVSpider/wiki)
+
+## TVBox互联网发布地址
+[TV发布地址](https://github.com/FongMi/Release/tree/main/apk/release)
+```bash
+https://gh.con.sh/https://raw.githubusercontent.com/jadehh/TVSpider/js/tv_config.json
+```
+> 配置信息见js分支分支
+
+
+## CatVodOpen
+[CatVodOpen发布地址](https://github.com/catvod/CatVodOpen/releases)
+
+> 注意使用Gitee或Github导入,并设置为私有仓库,CatVodOpen仅支持私有仓库
+
+V1.1.3版本以上
+```bash
+gitee://Token@gitee.com/jadehh_743/TVSpider/dist/index.js.md5
+```
+**改动**
+
+* quickjs改为nodejs,proxy设置修改
+* 在ios上无法使用local,使用db替换local所有方法
+* nodejs 的优势在于更加灵活
+> 配置信息见dist分支
+
+V1.1.2版本以下
+```bash
+gitee://Token@gitee.com/jadehh_743/TVSpider/js/open_config.json
+```
+> 配置信息见js分支分支
+
+
+## config文件生成
+```bash
+python build.py --aliToken aliToken
+```
+> Token如果失效,需要重新获取阿里Token
+>
+> [阿里Token获取](https://alist.nn.ci/zh/guide/drivers/aliyundrive.html)
+>
+> nodejs 部分只生成代码,需要手动build,区分18+
+
+## 直播源生成
+> 见[jadehh/LiveSpider](https://github.com/jadehh/LiveSpider)
+
+
+## 遇到的问题
+* 玩偶姐姐播放不了,需要切换VPN节点
+* m3u8遇到跨域的问题可以尝试使用代理来进行加载,如果没有跨域使用代理会引起死循环
+* 虎牙弹幕功能无法实现,现在并不支持WebSocket来监听弹幕
+* SP360启用嗅探解析,CatVodOpen目前还不支持嗅探
+* CatVodOpen Windows无法预览Jable和Doll图片,需要手动开启代理加载。
+* TV影视暂不不支持哔哩哔哩DASH文件播放
+* 老版本的CatVodOpen cfg参数类型为:string,TV参数类型为[object],所有需要区分,初始化的时候还是用this.cfgObj
+
+## 特别说明
+* 近期CatVodOpen更新移除了quickjs,导致无法使用,请尝试使用旧版本
+* 或切换至nodejs目录下编译生成dist目录,dist目录发布到dist分支下
+* main分支用于代码测试(不包含任何配置信息),js分支发布支持quickjs爬虫配置信息,dist分支发布支持nodejs爬虫配置信息
+* 所有的配置信息都通过Github Actions发布,通过创建tag来生成新的配置信息并自动发布
+* fork仓库时去掉仅复制main分支的✔,这样就可以fork所有的分支了
+
+## ✨ Star 数
+
+[](https://star-history.com/#jadehh/TVSpider&Date)
+---
+
+## 飞机群
+
+加入我们吧
+
+
+
+
+----
+
+## 赞助
+
+如果觉得此项目有用,可以考虑赞助我喝杯咖啡,感谢star❤
+
+
\ No newline at end of file
diff --git a/code b/code
new file mode 160000
index 00000000..d740cb71
--- /dev/null
+++ b/code
@@ -0,0 +1 @@
+Subproject commit d740cb717859dae415d2f3d757147e62dce6a0ca
diff --git a/js/4kysxz.js b/js/4kysxz.js
new file mode 100644
index 00000000..fd80b2fa
--- /dev/null
+++ b/js/4kysxz.js
@@ -0,0 +1,238 @@
+/*
+* @File : 4kysxz.js.js
+* @Author : jade
+* @Date : 2024/1/24 16:47
+* @Email : jadehh@1ive.com
+* @Software : Samples
+* @Desc : 4k高清网 (已失效)
+*/
+import {_} from '../lib/cat.js';
+import {VodDetail, VodShort} from "../lib/vod.js"
+import * as Utils from "../lib/utils.js";
+import {Spider} from "./spider.js";
+
+class YSXZSpider extends Spider {
+ constructor() {
+ super();
+ this.siteUrl = "https://4kysxz.top"
+ }
+
+ getAppName() {
+ return `4K高清网`
+ }
+
+ getName() {
+ return `🚄┃4K高清网┃🚄`
+ }
+
+ getJSName() {
+ return "4kysxz"
+ }
+
+ getType() {
+ return 3
+ }
+
+ async init(cfg) {
+ await super.init(cfg);
+ }
+
+ async parseVodShortListFromDoc($) {
+ const cards = $('div.row.posts-wrapper >div > article > div.entry-media > div > a')
+ return _.map(cards, (n) => {
+ let id = n.attribs['href'];
+ let name = $($(n).find('img')[0]).attr('alt').replaceAll('', '').replaceAll('', '').split(' ')[0];
+ let pic = $($(n).find('img')[0]).attr('data-src');
+ return {
+ vod_id: id, vod_name: name, vod_pic: pic, vod_remarks: '',
+ };
+ });
+ }
+
+ async parseVodDetailFromDoc($) {
+ let vodDetail = new VodDetail();
+ let vodElement = $("[class=\"entry-content u-text-format u-clearfix\"]")
+ let text = "";
+ for (const vodEle of vodElement) {
+ text = text + $(vodEle).text().replaceAll(":", ":") + "\n"
+ }
+ vodDetail.vod_name = $($("[class=\"article-title\"]")).text()
+ vodDetail.vod_pic = $($("[class=\"entry-content u-text-format u-clearfix\"]")).find("img")[0].attribs["src"]
+ vodDetail.vod_area = Utils.getStrByRegex(/上映地区(.*?)\n/, text).replaceAll(":", "")
+ vodDetail.vod_director = Utils.getStrByRegex(/导演(.*?)\n/, text).replaceAll(":", "")
+ vodDetail.vod_actor = Utils.getStrByRegex(/主演(.*?)\n/, text).replaceAll(":", "")
+ vodDetail.vod_content = Utils.getStrByRegex(/剧情简介(.*?)\n/, text).replaceAll(":", "").replaceAll("·", "")
+ let actors = _.map($('div.entry-content.u-text-format.u-clearfix > div:nth-child(10) > div > span > span'), (n) => {
+ return $(n).text().split(' ')[0];
+ });
+ vodDetail.vod_actor = actors.join('/');
+ let directors = _.map($('div.entry-content.u-text-format.u-clearfix > div:nth-child(6) > div > span'), (n) => {
+ return $(n).text().split(' ')[0];
+ });
+ vodDetail.vod_director = directors.join('/');
+ vodDetail.vod_name = $('div.site-content > section > div > header > h1').text().trim();
+ let playUrlStr = '';
+ let playFromStr = '';
+ //高清直播
+ const cards = $('div.entry-content.u-text-format.u-clearfix > custag > ul > li > a');
+ if (cards.length > 0) {
+ let playUrls = _.map(cards, (n) => {
+ let playUrl = n.attribs['href'];
+ if (playUrl.indexOf('url=') > 0) {
+ playUrl = playUrl.split('url=')[1].split('&name')[0];
+ }
+ return $(n).text() + '$' + playUrl;
+ });
+ playUrlStr = playUrls.join('#');
+ playFromStr = '高清直播';
+ }
+ if (!this.catOpenStatus) {
+ //磁力链接
+ const tbs = $('loginshow > table');
+ let playFrom = '';
+ let nameUrls = [];
+ for (let i = 0; i < tbs.length; i++) {
+ if (i % 2 == 0) {
+ playFrom = $(tbs[i]).find('tbody > tr >td').text().replaceAll('WEB', '磁力');
+ } else if (i % 2 == 1) {
+ const tds = $(tbs[i]).find('tbody > tr >td');
+ let nameUrl = '';
+ for (let j = 0; j < tds.length; j++) {
+ if (j % 2 == 0) {
+ nameUrl = $(tds[j]).text().split('.')[0].split(' ')[0];
+ } else if (j % 2 == 1) {
+ nameUrl = nameUrl + '$' + $(tds[j]).text().split('【')[0];
+ nameUrls.push(nameUrl);
+ }
+ }
+ if (playFromStr.length > 0) {
+ playFromStr += '$$$';
+ playUrlStr += '$$$';
+ }
+ playFromStr += playFrom;
+ playUrlStr += nameUrls.join('#');
+ }
+ }
+ }
+ vodDetail.vod_play_from = playFromStr
+ vodDetail.vod_play_url = playUrlStr
+ return vodDetail
+ }
+
+
+ async setClasses() {
+ this.classes = []
+ this.classes.push(this.getTypeDic("首页", "/#"))
+ }
+
+ async getFilter(typeElements) {
+ let value_list = []
+ value_list.push({
+ "n": "全部", "v": "全部",
+ })
+ for (const typeElement of typeElements) {
+ value_list.push({
+ "n": typeElement.attribs["title"],
+ "v": typeElement.attribs["href"].split("/").slice(-1)[0].split(".")[0],
+ })
+ }
+ return [{"key": "1", "name": "类型", "value": value_list}]
+ }
+
+ async setFilterObj() {
+ let $ = await this.getHtml()
+ let navElements = $("[class=\"navbar-item menu-item-has-children\"]")
+ let extent_list = []
+ for (const navElement of navElements) {
+ let type_name = $($(navElement).find("a")[0]).text()
+ if (type_name.indexOf("影视") > -1) {
+ let extend_dic = {"key": "1", "name": type_name, "value": []}
+ let type_elements = $($(navElement).find("ul")).find("a")
+ for (const type_element of type_elements) {
+ extend_dic["value"].push({"n": $(type_element).text(), "v": type_element.attribs["href"]})
+ }
+ extent_list.push(extend_dic)
+ }
+ }
+ this.filterObj["/#"] = extent_list
+ }
+
+ async setCategory(tid, pg, filter, extend) {
+ let url;
+ if (extend["1"] === undefined) {
+ url = this.siteUrl + tid
+ } else {
+ if (extend["1"].indexOf("category") > -1) {
+ url = this.siteUrl + extend["1"].split(".")[0] + "_" + pg + ".html"
+ } else {
+ url = this.siteUrl + extend["1"]
+ }
+ }
+ let $ = await this.getHtml(url)
+ this.vodList = await this.parseVodShortListFromDoc($)
+ }
+
+ async setHomeVod() {
+ let $ = await this.getHtml()
+ this.homeVodList = await this.parseVodShortListFromDoc($)
+ }
+
+ async setDetail(id) {
+ const $ = await this.getHtml(id);
+ this.vodDetail = await this.parseVodDetailFromDoc($)
+ }
+
+ async setSearch(wd, quick) {
+ let $ = await this.getHtml(this.siteUrl + '/search.php?q=' + wd)
+ this.vodList = await this.parseVodShortListFromDoc($)
+ }
+}
+
+let spider = new YSXZSpider()
+
+async function init(cfg) {
+ await spider.init(cfg)
+}
+
+async function home(filter) {
+ return await spider.home(filter)
+}
+
+async function homeVod() {
+ return await spider.homeVod()
+}
+
+async function category(tid, pg, filter, extend) {
+ return await spider.category(tid, pg, filter, extend)
+}
+
+async function detail(id) {
+ return await spider.detail(id)
+}
+
+async function play(flag, id, flags) {
+ return await spider.play(flag, id, flags)
+}
+
+async function search(wd, quick) {
+ return await spider.search(wd, quick)
+}
+
+async function proxy(segments, headers) {
+ return await spider.proxy(segments, headers)
+}
+
+export function __jsEvalReturn() {
+ return {
+ init: init,
+ home: home,
+ homeVod: homeVod,
+ category: category,
+ detail: detail,
+ play: play,
+ search: search,
+ proxy: proxy
+ };
+}
+
+export {spider}
\ No newline at end of file
diff --git a/js/aiyingshi.js b/js/aiyingshi.js
new file mode 100644
index 00000000..b6a80cea
--- /dev/null
+++ b/js/aiyingshi.js
@@ -0,0 +1,299 @@
+/*
+ * @Author: samples jadehh@live.com
+ * @Date: 2023-12-14 11:03:04
+ * @LastEditors: samples jadehh@live.com
+ * @LastEditTime: 2023-12-14 11:03:04
+ * @FilePath: js/aiyingshi.js
+ * @Description: 爱影视爬虫类
+ */
+import {_, load} from '../lib/cat.js';
+import {VodDetail, VodShort} from "../lib/vod.js"
+import * as Utils from "../lib/utils.js";
+import {Spider} from "./spider.js";
+
+
+class AiYingShiSpider extends Spider {
+ constructor() {
+ super();
+ this.siteUrl = 'https://aiyingshis.com';
+ }
+
+ getName() {
+ return "🚀┃爱影视┃🚀"
+ }
+
+ getAppName() {
+ return "爱影视"
+ }
+ getJSName() {
+ return "aiyingshi"
+ }
+
+ getType() {
+ return 3
+ }
+
+ async parseVodShortListFromDoc($) {
+ let items = $('.module-item');
+ let vod_list = [];
+ for (const item of items) {
+ let vodShort = new VodShort()
+ let oneA = $(item).find('.module-item-cover .module-item-pic a').first();
+ vodShort.vod_id = oneA.attr('href');
+ vodShort.vod_name = oneA.attr('title');
+ let pic = $(item).find('.module-item-cover .module-item-pic img').first().attr('data-src')
+ if (pic.indexOf("img.php?url=") > 0) {
+ pic = pic.split("img.php?url=")[1]
+ }else if (pic.indexOf("https:") === -1 && pic.indexOf("http:") === -1){
+ pic = "https:" + pic
+ }
+ vodShort.vod_pic = pic
+ vodShort.vod_remarks = $(item).find('.module-item-text').first().text();
+ if (vodShort.vod_name !== undefined){
+ vod_list.push(vodShort)
+ }
+
+ }
+ return vod_list
+ }
+
+ async parseVodDetailFromDoc($) {
+ let vodDetail = new VodDetail()
+ vodDetail.vod_name = $('.page-title')[0].children[0].data
+ vodDetail.vod_pic = $($("[class=\"video-cover\"]")).find(".lazyload")[0].attribs["data-src"]
+ let video_info_list = $($(".video-info-aux")).text().replaceAll("\t","").split("\n")
+ let type_list = []
+ for (const video_info of video_info_list){
+ if (!_.isEmpty(video_info.replaceAll(" ","").replaceAll("/",""))){
+ type_list.push(video_info.replaceAll(" ","").replaceAll("/",""))
+ }
+ }
+ vodDetail.type_name = type_list.slice(0,2).join("*")
+ let video_items = $("[class=\"video-info-items\"]")
+ vodDetail.vod_director = $(video_items[0]).find("a")[0].children[0].data
+ let vidoe_info_actor_list = $(video_items[1]).find("a")
+ let actor_list = []
+ for (const vidoe_info_actor of vidoe_info_actor_list) {
+ actor_list.push(vidoe_info_actor.children[0].data)
+ }
+ vodDetail.vod_actor = actor_list.join(" * ")
+ vodDetail.vod_year = type_list[2]
+ vodDetail.vod_remarks = $($(video_items[3]).find(".video-info-item")).text()
+ vodDetail.vod_content = $($(video_items[5]).find(".video-info-item")).text()
+ vodDetail.vod_area = type_list[3]
+ vodDetail.vod_content = vodDetail.vod_content.replace("[收起部分]", "").replace("[展开全部]", "").replaceAll("\t","").replaceAll("\n","")
+
+ let playElements = $($("[class=\"module-tab-content\"]")[0]).find("span")
+ let urlElements = $("[class=\"module-list module-player-list tab-list sort-list \"]")
+ let form_list = []
+ for (const playerElement of playElements){
+ form_list.push($(playerElement).text())
+ }
+ let play_url_list = []
+ for (const urlElement of urlElements){
+ let playUrlElements = $($(urlElement).find("[class=\"sort-item\"]")).find("a")
+ let vodItems = []
+ for (const playUrlElement of playUrlElements){
+ let name = $(playUrlElement).text()
+ let url = playUrlElement.attribs["href"]
+ let play_url = name + "$" + url
+ vodItems.push(play_url)
+ }
+ play_url_list.push(vodItems.join("#"))
+ }
+ vodDetail.vod_play_from = form_list.join('$$$');
+ vodDetail.vod_play_url = _.values(play_url_list).join('$$$');
+ return vodDetail
+ }
+
+ async parseVodShortListFromDocBySearch($) {
+ let items = $('.module-search-item');
+ let vod_list = [];
+ for (const item of items) {
+ let vodShort = new VodShort()
+ vodShort.vod_id = $(item).find(".video-serial")[0].attribs.href;
+ vodShort.vod_name = $(item).find(".video-serial")[0].attribs.title;
+ vodShort.vod_pic = $(item).find(".module-item-pic > img")[0].attribs['data-src']
+ vodShort.vod_remarks = $($(item).find(".video-serial")[0]).text();
+ vod_list.push(vodShort);
+ }
+ return vod_list
+ }
+
+ async setClasses() {
+ let con = await this.fetch(this.siteUrl, null, this.getHeader());
+ if (!_.isEmpty(con)) {
+ const $ = load(con);
+ let elements = $($("[class=\"nav-menu-items\"]")[0]).find("li")
+ for (const element of elements.slice(0,6)) {
+ let type_name = $($(element).find("span")).text()
+ if (type_name !== "首页"){
+ let type_id = $(element).find("a")[0].attribs["href"].split("/").slice(-1)[0].split(".")[0]
+ let type_dic = {"type_id": type_id, "type_name": type_name}
+ this.classes.push(type_dic)
+ }
+ }
+ }
+ }
+
+ async getFilter($) {
+ let elements = $("[class=\"scroll-content\"]").slice(1)
+ let extend_list = []
+ for (let i = 0; i < elements.length; i++) {
+ let extend_dic = {"key": (i + 1).toString(), "name": "", "value": []}
+ if (i < elements.length - 1) {
+ extend_dic["name"] = $($(elements[i]).find("a")[0]).text()
+ extend_dic["value"].push({"n": "全部", "v": "0"})
+ for (const ele of $(elements[i]).find("a").slice(1)) {
+ if ($($(elements[i]).find("a")[0]).text() === "全部类型"){
+ extend_dic["value"].push({"n": $(ele).text(), "v":ele.attribs["href"].split("/").slice(-1)[0].split(".")[0]})
+ }else{
+ extend_dic["value"].push({"n": $(ele).text(), "v":$(ele).text()})
+
+ }
+ }
+ extend_list.push(extend_dic)
+ } else {
+ extend_dic["name"] = $($(elements[i]).find("a")[0]).text()
+ extend_dic["value"] = [{"n": "全部", "v": "0"}, {
+ "n": $($(elements[i]).find("a")[1]).text(),
+ "v": "hits"
+ }, {"n": $($(elements[i]).find("a")[2]).text(), "v": "score"}]
+
+ extend_list.push(extend_dic)
+ }
+
+ }
+ return extend_list
+ }
+
+ async setFilterObj() {
+ for (const type_dic of this.classes) {
+ let type_id = type_dic["type_id"]
+ if (type_id !== "/" && type_id !== "最近更新") {
+ let url = this.siteUrl + `/vodshow/id/${type_id}.html`
+ let html = await this.fetch(url, null, this.getHeader())
+ if (html != null) {
+ let $ = load(html)
+ this.filterObj[type_id] = await this.getFilter($)
+ }
+ }
+ }
+ }
+ async setHomeVod() {
+ let con = await this.fetch(this.siteUrl, null, this.getHeader());
+ if (!_.isEmpty(con)) {
+ const $ = load(con);
+ this.homeVodList = await this.parseVodShortListFromDoc($)
+ }
+ }
+
+ getExtend(value,defaultvalue,key = ""){
+ if (value !== undefined && value !== "0"){
+ return key + value
+ }else{
+ return defaultvalue
+ }
+
+ }
+
+ async getCateUrl(tid,pg,extend){
+ tid = this.getExtend(extend["1"],tid)
+ let area = this.getExtend(extend["2"],"","/area/")
+ let lanuage = this.getExtend(extend["3"],"","/lang/")
+ let year = this.getExtend(extend["4"],"","/year/")
+ let letter = this.getExtend(extend["5"],"","/letter/")
+ let time = this.getExtend(extend['6'],"","/by/")
+ return this.siteUrl + `/vodshow${time}${area}/id/${tid}${lanuage}${letter}${year}/page/${pg}.html`
+ }
+
+ async setCategory(tid, pg, filter, extend) {
+ let reqUrl = await this.getCateUrl(tid,pg,extend)
+ let html = await this.fetch(reqUrl, null, this.getHeader())
+ if (!_.isEmpty(html)) {
+ let $ = load(html)
+ this.vodList = await this.parseVodShortListFromDoc($)
+ let total = Utils.getStrByRegex(/\$\("\.mac_total"\)\.text\('(\d+)'\)/, html)
+ this.limit = 72;
+ if (total.length > 0) {
+ this.total = parseInt(total)
+ }
+ if (this.total <= this.limit) {
+ this.count = 1
+ } else {
+ this.count = Math.ceil(this.total / this.limit)
+ }
+ }
+ }
+
+ async setDetail(id) {
+ let detailUrl = this.siteUrl + id;
+ let html = await this.fetch(detailUrl, null, this.getHeader());
+ if (!_.isEmpty(html)) {
+ let $ = load(html)
+ this.vodDetail = await this.parseVodDetailFromDoc($)
+ }
+ }
+
+
+ async setPlay(flag, id, flags) {
+ let html = await this.fetch(this.siteUrl + id,null,this.getHeader())
+ if (!_.isEmpty(html)){
+ let player_str = Utils.getStrByRegex(/