From 3550e29bdd32267e416fa5e6b92fe691eab3de03 Mon Sep 17 00:00:00 2001
From: cgking <58586625+cgkings@users.noreply.github.com>
Date: Tue, 12 Jan 2021 09:20:47 +0800
Subject: [PATCH] =?UTF-8?q?141jav&141ppv=E5=85=B3=E8=81=94=E6=96=87?=
=?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
assets/radar-rules.js | 76 ++++++++++++++++++++++++++++++++++
docs/multimedia.md | 96 +++++++++++++++++++++++++++++++++++++++++++
lib/router.js | 6 +++
3 files changed, 178 insertions(+)
diff --git a/assets/radar-rules.js b/assets/radar-rules.js
index 8eba20708..99a84e604 100644
--- a/assets/radar-rules.js
+++ b/assets/radar-rules.js
@@ -2035,6 +2035,82 @@
},
],
},
+ '141jav.com': {
+ _name: '141JAV BT',
+ '.': [
+ {
+ title: '今日种子',
+ docs: 'https://docs.rsshub.app/multimedia.html#141jav',
+ source: '/',
+ target: (params, url, document) => {
+ const today = document.querySelector('div.card.mb-1.card-overview').getAttribute('data-date').replace(/-/g, '');
+ return `/141jav/day/${today}`;
+ },
+ },
+ {
+ title: '今日演员',
+ docs: 'https://docs.rsshub.app/multimedia.html#141jav',
+ source: '/',
+ target: (params, url, document) => {
+ const star = document.querySelector('div.card-content > div > a').getAttribute('href');
+ return `/141jav${star}`;
+ },
+ },
+ {
+ title: '页面种子',
+ docs: 'https://docs.rsshub.app/multimedia.html#141jav',
+ source: ['/:type', '/:type/:key', '/:type/:key/:morekey'],
+ target: (params, url, document) => {
+ const itype = params.morekey === undefined ? `${params.type}` : params.type === 'tag' ? 'tag' : 'day';
+ let ikey = `${itype === 'day' ? params.type : ''}${params.key || ''}${itype === 'tag' && params.morekey !== undefined ? '%2F' : ''}${params.morekey || ''}`;
+ if (ikey === '' && itype === 'tag') {
+ ikey = document.querySelector('div.thumbnail.is-inline > a').getAttribute('href').replace('/tag/', '').replace('/', '%2F');
+ } else if (ikey === '' && itype === 'actress') {
+ ikey = document.querySelector('div.card > a').getAttribute('href').replace('/actress/', '');
+ }
+ return `/141jav/${itype}/${ikey}`;
+ },
+ },
+ ],
+ },
+ '141ppv.com': {
+ _name: '141ppv BT',
+ '.': [
+ {
+ title: '今日种子',
+ docs: 'https://docs.rsshub.app/multimedia.html#141pvp',
+ source: '/',
+ target: (params, url, document) => {
+ const today = document.querySelector('div.card.mb-1.card-overview').getAttribute('data-date').replace(/-/g, '');
+ return `/141ppv/day/${today}`;
+ },
+ },
+ {
+ title: '今日演员',
+ docs: 'https://docs.rsshub.app/multimedia.html#141ppv',
+ source: '/',
+ target: (params, url, document) => {
+ const star = document.querySelector('div.card-content > div > a').getAttribute('href');
+ return `/141ppv${star}`;
+ },
+ },
+ {
+ title: '页面种子',
+ docs: 'https://docs.rsshub.app/multimedia.html#141ppv',
+ source: ['/:type', '/:type/:key', '/:type/:key/:morekey'],
+ target: (params, url, document) => {
+ const itype = params.morekey === undefined ? `${params.type}` : params.type === 'tag' ? 'tag' : 'day';
+ let ikey = `${itype === 'day' ? params.type : ''}${params.key || ''}${itype === 'tag' && params.morekey !== undefined ? '%2F' : ''}${params.morekey || ''}`;
+ if (ikey === '' && itype === 'tag') {
+ ikey = document.querySelector('div.thumbnail.is-inline > a').getAttribute('href').replace('/tag/', '').replace('/', '%2F');
+ } else if (ikey === '' && itype === 'actress') {
+ ikey = document.querySelector('div.card > a').getAttribute('href').replace('/actress/', '');
+ }
+ return `/141ppv/${itype}/${ikey}`;
+ },
+ },
+ ],
+ },
'sexinsex.net': {
_name: 'sexinsex',
'.': [
diff --git a/docs/multimedia.md b/docs/multimedia.md
index bec28475e..d8f6cee87 100644
--- a/docs/multimedia.md
+++ b/docs/multimedia.md
@@ -398,6 +398,102 @@ pageClass: routes
+## 141JAV
+
+::: tip 提示
+
+官方提供的订阅源不支持 BT 下载订阅,地址为
+
+:::
+
+### 141JAV BT
+
+
+
+**类型**
+
+| 最新 | 热门 | 随机 | 指定演员 | 指定标签 | 指定日期 |
+| ---- | ------- | ------ | -------- | -------- | -------- |
+| new | popular | random | actress | tag | day |
+
+**关键词**
+
+| 空 | 日期范围 | 演员名 | 标签名 | 日期 |
+| -- | ----------- | ------------ | -------------- | -------- |
+| | 7 / 30 / 60 | Yua%20Mikami | Adult%20Awards | YYYYMMDD |
+
+**示例说明**
+
+- `/141jav/new`
+
+ 仅当类型为 `new` `popular` 或 `random` 时关键词可为 **空**
+
+- `/141jav/popular/30`
+
+ `popular` `random` 类型的关键词可填写 `7` `30` 或 `60` 三个 **日期范围** 之一
+
+- `/141jav/actress/Yua%20Mikami`
+
+ `actress` 类型的关键词必须填写 **演员名** ,可在 [此处](https://141jav.com/actress/) 演员单页链接中获取
+
+- `/141jav/tag/Adult%20Awards`
+
+ `tag` 类型的关键词必须填写 **标签名** 且标签中的 `/` 必须替换为 `%2F` ,可在 [此处](https://141jav.com/tag/) 标签单页链接中获取
+
+- `/141jav/day/20200730`
+
+ `day` 类型的关键词必须填写 **日期** ,按照示例写成形如 `20200730` 的格式
+
+
+
+## 141PPV
+
+::: tip 提示
+
+官方提供的订阅源不支持 BT 下载订阅,地址为
+
+:::
+
+### 141PPV BT
+
+
+
+**类型**
+
+| 最新 | 热门 | 随机 | 指定演员 | 指定标签 | 指定日期 |
+| ---- | ------- | ------ | -------- | -------- | -------- |
+| new | popular | random | actress | tag | day |
+
+**关键词**
+
+| 空 | 日期范围 | 演员名 | 标签名 | 日期 |
+| -- | ----------- | ------------ | -------------- | -------- |
+| | 7 / 30 / 60 | Yua%20Mikami | Adult%20Awards | YYYYMMDD |
+
+**示例说明**
+
+- `/141ppv/new`
+
+ 仅当类型为 `new` `popular` 或 `random` 时关键词可为 **空**
+
+- `/141ppv/popular/30`
+
+ `popular` `random` 类型的关键词可填写 `7` `30` 或 `60` 三个 **日期范围** 之一
+
+- `/141ppv/actress/Yua%20Mikami`
+
+ `actress` 类型的关键词必须填写 **演员名** ,可在 [此处](https://141ppv.com/actress/) 演员单页链接中获取
+
+- `/141ppv/tag/Adult%20Awards`
+
+ `tag` 类型的关键词必须填写 **标签名** 且标签中的 `/` 必须替换为 `%2F` ,可在 [此处](https://141ppv.com/tag/) 标签单页链接中获取
+
+- `/141ppv/day/20200730`
+
+ `day` 类型的关键词必须填写 **日期** ,按照示例写成形如 `20200730` 的格式
+
+
+
## PornHub
### 分类
diff --git a/lib/router.js b/lib/router.js
index 53dc5ce41..c852de52c 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -3204,6 +3204,12 @@ router.get('/scut/scet/notice', require('./routes/universities/scut/scet/notice'
// OneJAV
router.get('/onejav/:type/:key?', require('./routes/onejav/one'));
+// 141jav
+router.get('/141jav/:type/:key?', require('./routes/141jav/141jav'));
+
+// 141ppv
+router.get('/141ppv/:type/:key?', require('./routes/141ppv/141ppv'));
+
// CuriousCat
router.get('/curiouscat/user/:id', require('./routes/curiouscat/user'));