Skip to content

Commit f0a4f91

Browse files
committed
🔧 书林文学移至non-searchable-rules.json
1 parent b8032bd commit f0a4f91

File tree

5 files changed

+47
-47
lines changed

5 files changed

+47
-47
lines changed

BOOK_SOURCES.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
| 5 | [大熊猫文学](https://www.dxmwx.org/) ||| |
1212
| 6 | [笔趣阁22](https://www.22biqu.com/) ||| |
1313
| 7 | [笔尖中文](http://www.xbiquzw.net/) ||| | |
14-
| 8 | [小说虎](https://www.xshbook.com/) ||| 正文广告较多,需手动过滤 |
15-
| 9 | [书林文学](http://www.shu009.com/) ||| 源站目录有重复、缺章的情况 |
16-
| 10 | [悠久小说网](http://www.ujxsw.org/) ||| |
17-
| 11 | [阅读库](http://www.yeudusk.com/) ||| |
18-
| 12 | [顶点小说](https://www.wxsy.net/) ||| 搜索、详情限流 |
14+
| 8 | [书林文学](http://www.shu009.com/) ||| 源站目录有重复、缺章的情况 |
15+
| 9 | [悠久小说网](http://www.ujxsw.org/) ||| |
16+
| 10 | [阅读库](http://www.yeudusk.com/) ||| |
17+
| 11 | [顶点小说](https://www.wxsy.net/) ||| 搜索、详情限流 |
1918

2019
`proxy-rules.json`:需要代理(非大陆 IP)的书源
2120

@@ -39,6 +38,7 @@
3938
| 1 | [黄易天地](http://www.xhytd.com/) ||| 搜索新加了CF,仅限大陆IP |
4039
| 1 | [天天看小说](https://cn.ttkan.co/) ||| 现无法搜索,搜索有限流(Read timed out) |
4140
| 1 | [96读书](https://www.96dushu.com/) ||| 搜索新加了CF,章节JS加密 |
41+
| 4 | [小说虎](https://www.xshbook.com/) ||| 正文广告较多,需手动过滤 |
4242

4343
> [!IMPORTANT]
4444
> 使用大陆 IP 为 ❌ 的书源时,国内用户(可能)需要梯子(需要非大陆 IP)

bundle/rules/main-rules.json

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -273,42 +273,6 @@
273273
"filterTag": ""
274274
}
275275
},
276-
{
277-
"id": 8,
278-
"url": "https://www.xshbook.com/",
279-
"name": "小说虎",
280-
"comment": "搜索有人机验证,正文广告较多,需手动过滤",
281-
"language": "zh_CN",
282-
"search": {
283-
"url": "https://www.sososhu.com/?q=%s&site=xshbook",
284-
"method": "get",
285-
"result": "body > div.wrap > div > div > div",
286-
"bookName": "dl > dt > a",
287-
"author": "dl > dt > span",
288-
"intro": "dl > dd"
289-
},
290-
"book": {
291-
"url": "https://www.xshbook.com/0/(.*?)/",
292-
"bookName": "meta[property=\"og:novel:book_name\"]",
293-
"author": "meta[property=\"og:novel:author\"]",
294-
"intro": "meta[property=\"og:description\"]",
295-
"category": "meta[property=\"og:novel:category\"]",
296-
"coverUrl": "meta[property=\"og:image\"]",
297-
"latestChapter": "meta[property=\"og:novel:latest_chapter_name\"]",
298-
"lastUpdateTime": "meta[property=\"og:novel:update_time\"]",
299-
"status": "meta[property=\"og:novel:status\"]"
300-
},
301-
"toc": {
302-
"item": "#list > dl > dd > a"
303-
},
304-
"chapter": {
305-
"title": ".bookname > h1",
306-
"content": "#content",
307-
"paragraphTagClosed": true,
308-
"filterTxt": "\\(本章完\\)|一秒记住.↘小说虎首^发↘.手机用户输入地址:m.xshbook.com| 支持.^完*本*神*站*^.把本站分享那些需要的小伙伴!找不到书请留言!|(记住本站网址,,方便下次或且百度输入“”,就能进入本站)|手机直接访问:m.xshbook .com|记不住网址,可以百度搜索:【小说虎 】|↘完♂本♂神♂立占↙手机用户输入地址:m.xshbook.com|支持:↘完♂本♂神♂立占↙喜欢本站的朋友可以多多推荐给更多爱看书伙伴们!|⾸发免费看书搜:看书群kanshuqun.com",
309-
"filterTag": ""
310-
}
311-
},
312276
{
313277
"id": 9,
314278
"url": "http://www.shu009.com/",

bundle/rules/non-searchable-rules.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,42 @@
108108
"nextPage": "#readbg > div.mlfy_page > a:nth-child(4)",
109109
"nextPageInJs": "//*[@id=\"readbg\"]/script[5]@js:r=r.match(/nextpage = \"(.*?)\"/)[1];"
110110
}
111+
},
112+
{
113+
"id": 4,
114+
"url": "https://www.xshbook.com/",
115+
"name": "小说虎",
116+
"comment": "搜索有人机验证,正文广告较多,需手动过滤",
117+
"language": "zh_CN",
118+
"search": {
119+
"disabled": true,
120+
"url": "https://www.sososhu.com/?q=%s&site=xshbook",
121+
"method": "get",
122+
"result": "body > div.wrap > div > div > div",
123+
"bookName": "dl > dt > a",
124+
"author": "dl > dt > span",
125+
"intro": "dl > dd"
126+
},
127+
"book": {
128+
"url": "https://www.xshbook.com/0/(.*?)/",
129+
"bookName": "meta[property=\"og:novel:book_name\"]",
130+
"author": "meta[property=\"og:novel:author\"]",
131+
"intro": "meta[property=\"og:description\"]",
132+
"category": "meta[property=\"og:novel:category\"]",
133+
"coverUrl": "meta[property=\"og:image\"]",
134+
"latestChapter": "meta[property=\"og:novel:latest_chapter_name\"]",
135+
"lastUpdateTime": "meta[property=\"og:novel:update_time\"]",
136+
"status": "meta[property=\"og:novel:status\"]"
137+
},
138+
"toc": {
139+
"item": "#list > dl > dd > a"
140+
},
141+
"chapter": {
142+
"title": ".bookname > h1",
143+
"content": "#content",
144+
"paragraphTagClosed": true,
145+
"filterTxt": "\\(本章完\\)|一秒记住.↘小说虎首^发↘.手机用户输入地址:m.xshbook.com| 支持.^完*本*神*站*^.把本站分享那些需要的小伙伴!找不到书请留言!|(记住本站网址,,方便下次或且百度输入“”,就能进入本站)|手机直接访问:m.xshbook .com|记不住网址,可以百度搜索:【小说虎 】|↘完♂本♂神♂立占↙手机用户输入地址:m.xshbook.com|支持:↘完♂本♂神♂立占↙喜欢本站的朋友可以多多推荐给更多爱看书伙伴们!|⾸发免费看书搜:看书群kanshuqun.com",
146+
"filterTag": ""
147+
}
111148
}
112149
]

src/main/java/com/pcdd/sonovel/util/SourceUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public String getRuleStr(int sourceId) {
101101
*/
102102
public List<Source> getSearchableSources() {
103103
return getAllRules().stream()
104-
.filter(r -> r.getSearch() != null && !r.getSearch().isDisabled())
104+
.filter(r -> !r.isDisabled() && r.getSearch() != null && !r.getSearch().isDisabled())
105105
.map(r -> {
106106
AppConfig config = ConfigUtils.defaultConfig();
107107
config.setSourceId(r.getId());

src/test/java/com/pcdd/sonovel/source/BookSourceTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ class BookSourceTest {
6363
"5, https://www.dxmwx.org/book/56441.html",
6464
"6, https://www.22biqu.com/biqu79148/",
6565
"7, http://www.xbiquzw.net/10_10233/",
66-
"8, https://www.xshbook.com/0/94328173/",
67-
"9, http://www.shu009.com/book/111616/",
68-
"10, http://www.ujxsw.org/book/107612/",
69-
"11, http://www.yeudusk.com/book/1322535/",
70-
"12, https://www.wxsy.net/novel/1803/",
66+
"8, http://www.shu009.com/book/111616/",
67+
"9, http://www.ujxsw.org/book/107612/",
68+
"10, http://www.yeudusk.com/book/1322535/",
69+
"11, https://www.wxsy.net/novel/1803/",
7170
})
7271
void testMainRules(int sourceId, String bookUrl) {
7372
this.bookUrl = bookUrl;

0 commit comments

Comments
 (0)