From cdbe96cb02d9174624278bdf5dabe8ba1d77604a Mon Sep 17 00:00:00 2001
From: cluntop <85211716+cluntop@users.noreply.github.com>
Date: Fri, 27 Mar 2026 00:41:25 +0800
Subject: [PATCH] Update Up
---
.github/test.md | 4 +-
box.json | 277 +-
js/py/aowuplugin/4K.py | 335 -
js/py/aowuplugin/kzb.py | 155 -
js/py/aowuplugin/py_4K数逼毛.py | 346 -
js/py/aowuplugin/py_Phub.py | 276 -
js/py/aowuplugin/py_Xhm(1).py | 271 -
js/py/aowuplugin/py_Xhm.py | 263 -
js/py/aowuplugin/py_bilibilivd.py | 731 --
js/py/aowuplugin/py_lreeok.py | 159 -
js/py/aowuplugin/py_mp.py | 94 -
js/py/aowuplugin/py_xpg.py | 172 -
js/py/aowuplugin/py_色播聚合.py | 72 -
js/py/aowuplugin/upurl.py | 591 -
js/py/aowuplugin/xhamster.py | 276 -
js/py/base/local.py | 106 -
js/py/base/localProxy.py | 6 -
js/py/base/spider.py | 151 -
js/py/plugin/adult/51吸瓜.py | 352 -
js/py/plugin/adult/DSYS.py | 165 -
js/py/plugin/adult/Miss.py | 351 -
js/py/plugin/adult/Phb.py | 301 -
js/py/plugin/adult/Xhm.py | 288 -
js/py/plugin/adult/Xvd.py | 276 -
js/py/plugin/adult/lavAPP.py | 212 -
js/py/plugin/adult/吃瓜.py | 223 -
js/py/plugin/adult/小红薯APP.py | 186 -
js/py/plugin/adult/推特APP.py | 246 -
js/py/plugin/adult/浴火社APP.py | 349 -
js/py/plugin/adult/熊猫.py | 243 -
js/py/plugin/adult/花都.py | 242 -
js/py/plugin/adult/香蕉APP.py | 132 -
js/py/plugin/adult/黑料.py | 260 -
js/py/plugin/app/4KAV.py | 130 -
js/py/plugin/app/APPV2.py | 97 -
js/py/plugin/app/CliCli动漫APP.py | 254 -
js/py/plugin/app/LIVES.py | 768 --
js/py/plugin/app/LREEOK.py | 169 -
js/py/plugin/app/MiFunAPP.py | 249 -
js/py/plugin/app/hitvAPP.py | 146 -
js/py/plugin/app/三号动漫APP.py | 175 -
js/py/plugin/app/云端APP.py | 245 -
js/py/plugin/app/云速影视APP.py | 219 -
js/py/plugin/app/偷乐短剧.py | 109 -
js/py/plugin/app/光速APP.py | 222 -
js/py/plugin/app/剧多短剧APP.py | 313 -
js/py/plugin/app/剧粑粑.py | 315 -
js/py/plugin/app/哇哇APP.py | 263 -
js/py/plugin/app/嗷呜动漫.py | 280 -
js/py/plugin/app/国外剧APP.py | 216 -
js/py/plugin/app/奇迹APP.py | 216 -
js/py/plugin/app/好帅短剧.py | 128 -
js/py/plugin/app/小红影视.py | 174 -
js/py/plugin/app/小苹果APP.py | 140 -
js/py/plugin/app/恋鱼影视APP.py | 212 -
js/py/plugin/app/悠悠APP.py | 220 -
js/py/plugin/app/旺旺.py | 223 -
js/py/plugin/app/柯南影视.py | 197 -
js/py/plugin/app/海马影视APP.py | 181 -
js/py/plugin/app/火车太顺APP.py | 301 -
js/py/plugin/app/热播APP.py | 184 -
js/py/plugin/app/爱瓜TVAPP.py | 166 -
js/py/plugin/app/甜圈短剧.py | 151 -
js/py/plugin/app/电影猎手.py | 279 -
js/py/plugin/app/皮皮虾APP.py | 211 -
js/py/plugin/app/红果网页.py | 127 -
js/py/plugin/app/绝对影视.py | 147 -
js/py/plugin/app/美帕APP.py | 93 -
js/py/plugin/app/胖虎APP.py | 215 -
js/py/plugin/app/若惜追剧APP.py | 255 -
js/py/plugin/app/视觉APP.py | 239 -
js/py/plugin/app/边缘影视APP.py | 340 -
js/py/plugin/app/金牌.py | 225 -
js/py/plugin/app/零度影视APP.py | 224 -
js/py/plugin/app/骚火电影.py | 218 -
js/py/plugin/app/魔方影视APP.py | 209 -
js/py/plugin/html/4KAV.py | 130 -
js/py/plugin/html/LIVES.py | 768 --
js/py/plugin/html/LREEOK.py | 169 -
js/py/plugin/html/偷乐短剧.py | 109 -
js/py/plugin/html/剧粑粑.py | 315 -
js/py/plugin/html/嗷呜动漫.py | 280 -
js/py/plugin/html/好帅短剧.py | 128 -
js/py/plugin/html/小红影视.py | 174 -
js/py/plugin/html/新荐片.py | 147 -
js/py/plugin/html/旺旺.py | 223 -
js/py/plugin/html/柯南影视.py | 197 -
js/py/plugin/html/甜圈短剧.py | 151 -
js/py/plugin/html/红果网页.py | 127 -
js/py/plugin/html/绝对影视.py | 147 -
js/py/plugin/html/金牌.py | 225 -
js/py/plugin/html/随机小姐姐.py | 144 -
js/py/plugin/html/骚火电影.py | 218 -
js/py/plugin/official/优.py | 301 -
js/py/plugin/official/爱.py | 249 -
js/py/plugin/official/腾.py | 320 -
js/py/plugin/official/芒.py | 205 -
js/py/plugin/tools/wogg_wobg分类筛选生成.py | 111 -
js/py/plugin/小白调试示例.py | 108 -
js/s/可可.json | 2 +-
js/test/4k.js | 935 --
js/test/cheerio.min.js | 10945 ------------------
js/test/config.json | 20 -
js/test/crypto-hiker.js | 6141 ----------
js/test/crypto-js.js | 6192 ----------
js/test/custom_spider.jar | Bin 700128 -> 0 bytes
js/test/drpy-core.min.js | 1 -
js/test/drpy2-new.min.js | 3201 -----
js/test/drpy2.js | 3862 ------
js/test/drpy2.min.js | 3108 -----
js/test/drpy3.min.js | 73 -
js/test/gbk.js | 69 -
js/test/jinja.js | 607 -
js/test/jinja.min.js | 504 -
js/test/jsencrypt.js | 360 -
js/test/json5.js | 1809 ---
js/test/jsonpathplus.min.js | 1277 --
js/test/node-rsa.js | 5858 ----------
js/test/pako.min.js | 1439 ---
js/test/uri.min.js | 1 -
js/test/模板.js | 429 -
{js/s => py}/粤漫.py | 0
122 files changed, 5 insertions(+), 69330 deletions(-)
delete mode 100755 js/py/aowuplugin/4K.py
delete mode 100755 js/py/aowuplugin/kzb.py
delete mode 100755 js/py/aowuplugin/py_4K数逼毛.py
delete mode 100755 js/py/aowuplugin/py_Phub.py
delete mode 100755 js/py/aowuplugin/py_Xhm(1).py
delete mode 100755 js/py/aowuplugin/py_Xhm.py
delete mode 100755 js/py/aowuplugin/py_bilibilivd.py
delete mode 100755 js/py/aowuplugin/py_lreeok.py
delete mode 100755 js/py/aowuplugin/py_mp.py
delete mode 100755 js/py/aowuplugin/py_xpg.py
delete mode 100755 js/py/aowuplugin/py_色播聚合.py
delete mode 100755 js/py/aowuplugin/upurl.py
delete mode 100755 js/py/aowuplugin/xhamster.py
delete mode 100755 js/py/base/local.py
delete mode 100755 js/py/base/localProxy.py
delete mode 100755 js/py/base/spider.py
delete mode 100755 js/py/plugin/adult/51吸瓜.py
delete mode 100755 js/py/plugin/adult/DSYS.py
delete mode 100755 js/py/plugin/adult/Miss.py
delete mode 100755 js/py/plugin/adult/Phb.py
delete mode 100755 js/py/plugin/adult/Xhm.py
delete mode 100755 js/py/plugin/adult/Xvd.py
delete mode 100755 js/py/plugin/adult/lavAPP.py
delete mode 100755 js/py/plugin/adult/吃瓜.py
delete mode 100755 js/py/plugin/adult/小红薯APP.py
delete mode 100755 js/py/plugin/adult/推特APP.py
delete mode 100755 js/py/plugin/adult/浴火社APP.py
delete mode 100755 js/py/plugin/adult/熊猫.py
delete mode 100755 js/py/plugin/adult/花都.py
delete mode 100755 js/py/plugin/adult/香蕉APP.py
delete mode 100755 js/py/plugin/adult/黑料.py
delete mode 100755 js/py/plugin/app/4KAV.py
delete mode 100755 js/py/plugin/app/APPV2.py
delete mode 100755 js/py/plugin/app/CliCli动漫APP.py
delete mode 100755 js/py/plugin/app/LIVES.py
delete mode 100755 js/py/plugin/app/LREEOK.py
delete mode 100755 js/py/plugin/app/MiFunAPP.py
delete mode 100755 js/py/plugin/app/hitvAPP.py
delete mode 100755 js/py/plugin/app/三号动漫APP.py
delete mode 100755 js/py/plugin/app/云端APP.py
delete mode 100755 js/py/plugin/app/云速影视APP.py
delete mode 100755 js/py/plugin/app/偷乐短剧.py
delete mode 100755 js/py/plugin/app/光速APP.py
delete mode 100755 js/py/plugin/app/剧多短剧APP.py
delete mode 100755 js/py/plugin/app/剧粑粑.py
delete mode 100755 js/py/plugin/app/哇哇APP.py
delete mode 100755 js/py/plugin/app/嗷呜动漫.py
delete mode 100755 js/py/plugin/app/国外剧APP.py
delete mode 100755 js/py/plugin/app/奇迹APP.py
delete mode 100755 js/py/plugin/app/好帅短剧.py
delete mode 100755 js/py/plugin/app/小红影视.py
delete mode 100755 js/py/plugin/app/小苹果APP.py
delete mode 100755 js/py/plugin/app/恋鱼影视APP.py
delete mode 100755 js/py/plugin/app/悠悠APP.py
delete mode 100755 js/py/plugin/app/旺旺.py
delete mode 100755 js/py/plugin/app/柯南影视.py
delete mode 100755 js/py/plugin/app/海马影视APP.py
delete mode 100755 js/py/plugin/app/火车太顺APP.py
delete mode 100755 js/py/plugin/app/热播APP.py
delete mode 100755 js/py/plugin/app/爱瓜TVAPP.py
delete mode 100755 js/py/plugin/app/甜圈短剧.py
delete mode 100755 js/py/plugin/app/电影猎手.py
delete mode 100755 js/py/plugin/app/皮皮虾APP.py
delete mode 100755 js/py/plugin/app/红果网页.py
delete mode 100755 js/py/plugin/app/绝对影视.py
delete mode 100755 js/py/plugin/app/美帕APP.py
delete mode 100755 js/py/plugin/app/胖虎APP.py
delete mode 100755 js/py/plugin/app/若惜追剧APP.py
delete mode 100755 js/py/plugin/app/视觉APP.py
delete mode 100755 js/py/plugin/app/边缘影视APP.py
delete mode 100755 js/py/plugin/app/金牌.py
delete mode 100755 js/py/plugin/app/零度影视APP.py
delete mode 100755 js/py/plugin/app/骚火电影.py
delete mode 100755 js/py/plugin/app/魔方影视APP.py
delete mode 100755 js/py/plugin/html/4KAV.py
delete mode 100755 js/py/plugin/html/LIVES.py
delete mode 100755 js/py/plugin/html/LREEOK.py
delete mode 100755 js/py/plugin/html/偷乐短剧.py
delete mode 100755 js/py/plugin/html/剧粑粑.py
delete mode 100755 js/py/plugin/html/嗷呜动漫.py
delete mode 100755 js/py/plugin/html/好帅短剧.py
delete mode 100755 js/py/plugin/html/小红影视.py
delete mode 100755 js/py/plugin/html/新荐片.py
delete mode 100755 js/py/plugin/html/旺旺.py
delete mode 100755 js/py/plugin/html/柯南影视.py
delete mode 100755 js/py/plugin/html/甜圈短剧.py
delete mode 100755 js/py/plugin/html/红果网页.py
delete mode 100755 js/py/plugin/html/绝对影视.py
delete mode 100755 js/py/plugin/html/金牌.py
delete mode 100755 js/py/plugin/html/随机小姐姐.py
delete mode 100755 js/py/plugin/html/骚火电影.py
delete mode 100755 js/py/plugin/official/优.py
delete mode 100755 js/py/plugin/official/爱.py
delete mode 100755 js/py/plugin/official/腾.py
delete mode 100755 js/py/plugin/official/芒.py
delete mode 100755 js/py/plugin/tools/wogg_wobg分类筛选生成.py
delete mode 100755 js/py/plugin/小白调试示例.py
delete mode 100755 js/test/4k.js
delete mode 100755 js/test/cheerio.min.js
delete mode 100755 js/test/config.json
delete mode 100755 js/test/crypto-hiker.js
delete mode 100755 js/test/crypto-js.js
delete mode 100755 js/test/custom_spider.jar
delete mode 100755 js/test/drpy-core.min.js
delete mode 100755 js/test/drpy2-new.min.js
delete mode 100755 js/test/drpy2.js
delete mode 100755 js/test/drpy2.min.js
delete mode 100755 js/test/drpy3.min.js
delete mode 100755 js/test/gbk.js
delete mode 100755 js/test/jinja.js
delete mode 100755 js/test/jinja.min.js
delete mode 100755 js/test/jsencrypt.js
delete mode 100755 js/test/json5.js
delete mode 100755 js/test/jsonpathplus.min.js
delete mode 100755 js/test/node-rsa.js
delete mode 100755 js/test/pako.min.js
delete mode 100755 js/test/uri.min.js
delete mode 100755 js/test/模板.js
rename {js/s => py}/粤漫.py (100%)
diff --git a/.github/test.md b/.github/test.md
index e06d7404c..bb7ec04ab 100755
--- a/.github/test.md
+++ b/.github/test.md
@@ -16,7 +16,9 @@ https://json.doube.eu.org/t3.php
https://www.xn--sss604efuw.com/jm/
-分类url .cateId=分类 .class=类型 .area=地区 .lang=语言 .year=年份 .by=排序 .catePg=类别?
+分类url .cateId=分类 .class=类型 .area=地区
+.lang=语言 .year=年份 .by=排序 .catePg=页码
+第二页链接[firstPage=第一页的链接]
https://github.com/hjdhnx/drpy-node
diff --git a/box.json b/box.json
index 151103654..e6ed9776a 100755
--- a/box.json
+++ b/box.json
@@ -47,13 +47,6 @@
"type": 3,
"api": "./js/apple.js"
},
- {
- "key": "tt",
- "name": "老三",
- "type": 3,
- "api": "/js/test/drpy2.min.js",
- "ext": "/js/test/4k.js"
- },
{
"key": "1",
"name": "== 1 =="
@@ -255,60 +248,6 @@
"type": 3,
"api": "./py/高清电影.py"
},
- {
- "key": "py_jianpian",
- "name": "荐片(T3)",
- "type": 3,
- "api": "./js/py/plugin/html/新荐片.py",
- "searchable": 1,
- "quickSearch": 0,
- "filterable": 0,
- "changeable": 0
- },
- {
- "key": "py_光速",
- "name": "光速(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/光速APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_胖虎",
- "name": "胖虎(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/胖虎APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_视觉",
- "name": "视觉(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/视觉APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_哇哇",
- "name": "哇哇(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/哇哇APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
{
"key": "py_金牌影院",
"name": "金牌影院(T3)",
@@ -320,49 +259,6 @@
"order_num": 5,
"ext": ""
},
- {
- "key": "py_皮皮虾",
- "name": "皮皮虾(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/皮皮虾APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_APPV2",
- "name": "APPV2(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/APPV2.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_hitv",
- "name": "hitv(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/hitvAPP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_kzb",
- "name": "kzd(T3)",
- "type": 3,
- "api": "./js/py/aowuplugin/kzb.py",
- "searchable": 1,
- "quickSearch": 0,
- "filterable": 0,
- "changeable": 0
- },
{
"key": "py_奇优动漫",
"name": "奇优动漫(T3)",
@@ -378,90 +274,13 @@
"key": "py_粤漫动漫",
"name": "粤漫动漫(T3)",
"type": 3,
- "api": "./js/s/粤漫.py",
+ "api": "./py/粤漫.py",
"searchable": 1,
"quickSearch": 1,
"filterable": 1,
"order_num": 5,
"ext": ""
},
- {
- "key": "py_三号动漫",
- "name": "三号动漫(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/三号动漫APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_火车太顺",
- "name": "火车太顺(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/火车太顺APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_剧多短剧",
- "name": "剧多短剧(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/剧多短剧APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_红果网页.py",
- "name": "红果网页(T3)",
- "type": 3,
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "api": "./js/py/plugin/html/红果网页.py",
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_绝对影视",
- "name": "绝对影视(T3)",
- "type": 3,
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "api": "./js/py/plugin/html/绝对影视.py",
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_嗷呜动漫",
- "name": "嗷呜动漫(T3)",
- "type": 3,
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "api": "./js/py/plugin/html/嗷呜动漫.py",
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_甜圈短剧",
- "name": "甜圈短剧(T3)",
- "type": 3,
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "api": "./js/py/plugin/html/甜圈短剧.py",
- "order_num": 5,
- "ext": ""
- },
{
"key": "py_jieyingshi",
"name": "界影视(T3)",
@@ -483,17 +302,6 @@
"order_num": 5,
"ext": ""
},
- {
- "key": "js_youyou",
- "name": "悠悠视频(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/悠悠APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
{
"key": "py_国外",
"name": "国外剧情(T3)",
@@ -514,27 +322,6 @@
"filterable": 1,
"playerType": 2
},
- {
- "key": "py_猎手",
- "name": "电影猎手(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/电影猎手.py",
- "quickSearch": 1,
- "searchable": 1,
- "filterable": 0
- },
- {
- "key": "py_美帕",
- "name": "美帕影视(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/美帕APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "playerType": 2,
- "order_num": 5,
- "ext": ""
- },
{
"key": "py_嗨皮",
"name": "嗨皮影视(T3)",
@@ -553,45 +340,6 @@
"filterable": 1,
"playerType": 2
},
- {
- "key": "py_魔方",
- "name": "魔方影视(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/魔方影视APP.py",
- "quickSearch": 1,
- "filterable": 1,
- "playerType": 2
- },
- {
- "key": "py_边缘",
- "name": "边缘影视(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/边缘影视APP.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "playerType": 2,
- "order_num": 5,
- "ext": ""
- },
- {
- "key": "py_恋鱼",
- "name": "恋鱼影视(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/恋鱼影视APP.py",
- "quickSearch": 1,
- "filterable": 1,
- "playerType": 2
- },
- {
- "key": "py_若惜",
- "name": "若惜影视(T3)",
- "type": 3,
- "api": "./js/py/plugin/app/若惜追剧APP.py",
- "quickSearch": 1,
- "filterable": 1,
- "playerType": 2
- },
{
"key": "py_云速",
"name": "云速影视(T3)",
@@ -601,18 +349,6 @@
"filterable": 1,
"playerType": 2
},
- {
- "key": "py_旺旺",
- "name": "旺旺影视(T3)",
- "type": 3,
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "api": "./js/py/plugin/html/旺旺.py",
- "playerType": 2,
- "order_num": 5,
- "ext": ""
- },
{
"key": "py_农牧",
"name": "农牧影视(T3)",
@@ -643,17 +379,6 @@
"searchable": 1,
"filterable": 1
},
- {
- "key": "py_随机小姐姐",
- "name": "随机小姐姐(T3)",
- "type": 3,
- "api": "./js/py/plugin/html/随机小姐姐.py",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "order_num": 5,
- "ext": ""
- },
{
"key": "3.1",
"name": "== 3.1 =="
diff --git a/js/py/aowuplugin/4K.py b/js/py/aowuplugin/4K.py
deleted file mode 100755
index c6abc18ec..000000000
--- a/js/py/aowuplugin/4K.py
+++ /dev/null
@@ -1,335 +0,0 @@
-import requests
-from bs4 import BeautifulSoup
-import re
-from base.spider import Spider
-import sys
-import json
-import base64
-import urllib.parse
-from Crypto.Cipher import ARC4
-from Crypto.Util.Padding import unpad
-import binascii
-
-sys.path.append('..')
-
-xurl = "https://www.fullhd.xxx/zh/"
-
-headerx = {
- 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.87 Safari/537.36'
- }
-
-pm = ''
-
-class Spider(Spider):
- global xurl
- global headerx
-
- def getName(self):
- return "首页"
-
- def init(self, extend):
- pass
-
- def isVideoFormat(self, url):
- pass
-
- def manualVideoCheck(self):
- pass
-
- def extract_middle_text(self, text, start_str, end_str, pl, start_index1: str = '', end_index2: str = ''):
- if pl == 3:
- plx = []
- while True:
- start_index = text.find(start_str)
- if start_index == -1:
- break
- end_index = text.find(end_str, start_index + len(start_str))
- if end_index == -1:
- break
- middle_text = text[start_index + len(start_str):end_index]
- plx.append(middle_text)
- text = text.replace(start_str + middle_text + end_str, '')
- if len(plx) > 0:
- purl = ''
- for i in range(len(plx)):
- matches = re.findall(start_index1, plx[i])
- output = ""
- for match in matches:
- match3 = re.search(r'(?:^|[^0-9])(\d+)(?:[^0-9]|$)', match[1])
- if match3:
- number = match3.group(1)
- else:
- number = 0
- if 'http' not in match[0]:
- output += f"#{'📽️' + match[1]}${number}{xurl}{match[0]}"
- else:
- output += f"#{'📽️' + match[1]}${number}{match[0]}"
- output = output[1:]
- purl = purl + output + "$$$"
- purl = purl[:-3]
- return purl
- else:
- return ""
- else:
- start_index = text.find(start_str)
- if start_index == -1:
- return ""
- end_index = text.find(end_str, start_index + len(start_str))
- if end_index == -1:
- return ""
-
- if pl == 0:
- middle_text = text[start_index + len(start_str):end_index]
- return middle_text.replace("\\", "")
-
- if pl == 1:
- middle_text = text[start_index + len(start_str):end_index]
- matches = re.findall(start_index1, middle_text)
- if matches:
- jg = ' '.join(matches)
- return jg
-
- if pl == 2:
- middle_text = text[start_index + len(start_str):end_index]
- matches = re.findall(start_index1, middle_text)
- if matches:
- new_list = [f'✨{item}' for item in matches]
- jg = '$$$'.join(new_list)
- return jg
-
- def homeContent(self, filter):
- result = {}
- result = {"class": [{"type_id": "latest-updates", "type_name": "最新视频🌠"},
- {"type_id": "top-rated", "type_name": "最佳视频🌠"},
- {"type_id": "most-popular", "type_name": "热门影片🌠"}],
- }
- return result
-
- def homeVideoContent(self):
- videos = []
- try:
- detail = requests.get(url=xurl, headers=headerx)
- detail.encoding = "utf-8"
- res = detail.text
- doc = BeautifulSoup(res, "lxml")
-
- # Get videos from different sections
- sections = {
- "latest-updates": "最新视频",
- "top-rated": "最佳视频",
- "most-popular": "热门影片"
- }
-
- for section_id, section_name in sections.items():
- section = doc.find('div', id=f"list_videos_videos_watched_right_now_items")
- if not section:
- continue
-
- vods = section.find_all('div', class_="item")
- for vod in vods:
- names = vod.find_all('a')
- name = names[0]['title'] if names and 'title' in names[0].attrs else section_name
-
- ids = vod.find_all('a')
- id = ids[0]['href'] if ids else ""
-
- pics = vod.find('img', class_="lazyload")
- pic = pics['data-src'] if pics and 'data-src' in pics.attrs else ""
-
- if pic and 'http' not in pic:
- pic = xurl + pic
-
- remarks = vod.find('span', class_="duration")
- remark = remarks.text.strip() if remarks else ""
-
- video = {
- "vod_id": id,
- "vod_name": name,
- "vod_pic": pic,
- "vod_remarks": remark
- }
- videos.append(video)
-
- result = {'list': videos}
- return result
- except Exception as e:
- print(f"Error in homeVideoContent: {str(e)}")
- return {'list': []}
-
- def categoryContent(self, cid, pg, filter, ext):
- result = {}
- videos = []
- try:
- if pg and int(pg) > 1:
- url = f'{xurl}/{cid}/{pg}/'
- else:
- url = f'{xurl}/{cid}/'
-
- detail = requests.get(url=url, headers=headerx)
- detail.encoding = "utf-8"
- res = detail.text
- doc = BeautifulSoup(res, "lxml")
-
- section = doc.find('div', class_="list-videos")
- if section:
- vods = section.find_all('div', class_="item")
- for vod in vods:
- names = vod.find_all('a')
- name = names[0]['title'] if names and 'title' in names[0].attrs else ""
-
- ids = vod.find_all('a')
- id = ids[0]['href'] if ids else ""
-
- pics = vod.find('img', class_="lazyload")
- pic = pics['data-src'] if pics and 'data-src' in pics.attrs else ""
-
- if pic and 'http' not in pic:
- pic = xurl + pic
-
- remarks = vod.find('span', class_="duration")
- remark = remarks.text.strip() if remarks else ""
-
- video = {
- "vod_id": id,
- "vod_name": name,
- "vod_pic": pic,
- "vod_remarks": remark
- }
- videos.append(video)
-
- except Exception as e:
- print(f"Error in categoryContent: {str(e)}")
-
- result = {
- 'list': videos,
- 'page': pg,
- 'pagecount': 9999,
- 'limit': 90,
- 'total': 999999
- }
- return result
-
- def detailContent(self, ids):
- global pm
- did = ids[0]
- result = {}
- videos = []
- playurl = ''
- if 'http' not in did:
- did = xurl + did
- res1 = requests.get(url=did, headers=headerx)
- res1.encoding = "utf-8"
- res = res1.text
-
- content = '👉' + self.extract_middle_text(res,'
','
', 0)
-
- yanuan = self.extract_middle_text(res, 'Pornstars:','',1, 'href=".*?">(.*?)')
-
- bofang = did
-
- videos.append({
- "vod_id": did,
- "vod_actor": yanuan,
- "vod_director": '',
- "vod_content": content,
- "vod_play_from": '💗4K💗',
- "vod_play_url": bofang
- })
-
- result['list'] = videos
- return result
-
- def playerContent(self, flag, id, vipFlags):
- parts = id.split("http")
- xiutan = 0
- if xiutan == 0:
- if len(parts) > 1:
- before_https, after_https = parts[0], 'http' + parts[1]
- res = requests.get(url=after_https, headers=headerx)
- res = res.text
-
- url2 = self.extract_middle_text(res, '