Add files via upload
This commit is contained in:
parent
112c9d2563
commit
4996d6be9b
@ -3,12 +3,12 @@
|
||||
* 不建议:
|
||||
* 传参 ?type=url¶ms=../json/采集.json
|
||||
* 建议:
|
||||
* 传参 ?type=url¶ms=../json/采集静态.json#1
|
||||
* 传参 ?type=url¶ms=../json/采集[zy]静态.json#1
|
||||
* 传参 ?type=url¶ms=../json/采集[密]静态.json#1
|
||||
* 传参 ?type=url¶ms=../json/采集静态.json$1
|
||||
* 传参 ?type=url¶ms=../json/采集[zy]静态.json$1
|
||||
* 传参 ?type=url¶ms=../json/采集[密]静态.json$1
|
||||
* hipy-server支持@改名比如:
|
||||
* 传参 ?type=url¶ms=../json/采集静态.json#1@采王道长[合]
|
||||
* 传参 ?type=url¶ms=../json/采集[zy]静态.json#1@采王zy[密]
|
||||
* 传参 ?type=url¶ms=../json/采集静态.json$1@采王道长[合]
|
||||
* 传参 ?type=url¶ms=../json/采集[zy]静态.json$1@采王zy[密]
|
||||
* 传参 ?type=url¶ms=../json/采集[密]静态.json@采王成人[密]
|
||||
* [{"name":"暴风资源","url":"https://bfzyapi.com","parse_url":""},{"name":"飞刀资源","url":"http://www.feidaozy.com","parse_url":""},{"name":"黑木耳资源","url":"https://www.heimuer.tv","parse_url":""}]
|
||||
*/
|
||||
@ -18,12 +18,13 @@ globalThis.getRandomItem = function (items) {//从列表随机取出一个元素
|
||||
var rule = {
|
||||
title: '采集之王[合]',
|
||||
author: '道长',
|
||||
version: '20240705 beta15',
|
||||
version: '20240705 beta16',
|
||||
update_info: `
|
||||
20240705:
|
||||
1.支持传参json后面增加#1 这样的额外标识,用于搜索结果精准匹配
|
||||
2.支持传参json后面增加#1#1 这样的额外标识,用于强制获取搜索图片。#1#不显示图片。默认是搜索强制有图片的[已实现详情页请求使用批量]
|
||||
1.支持传参json后面增加$1 这样的额外标识,用于搜索结果精准匹配
|
||||
2.支持传参json后面增加$1$1 这样的额外标识,用于强制获取搜索图片。$1$不显示图片。默认是搜索强制有图片的[已实现详情页请求使用批量]
|
||||
3.修复二级数据无序匹配搜索列表图片的问题
|
||||
4.修改搜索精准和图片显示额外参数间隔符从#变为$
|
||||
20240703:
|
||||
1.采集json支持"searchable": 0,用于搜索时排除这个源
|
||||
20240604:
|
||||
@ -54,8 +55,8 @@ var rule = {
|
||||
search_match: false, // 搜索精准匹配
|
||||
search_pic: true, // 搜索强制需要图片
|
||||
// params: 'http://127.0.0.1:5707/files/json/%E9%87%87%E9%9B%86.json',
|
||||
// params: 'http://127.0.0.1:5707/files/json/采集静态.json#1',
|
||||
// params: 'http://127.0.0.1:5707/files/json/采集[zy]静态.json#1',
|
||||
// params: 'http://127.0.0.1:5707/files/json/采集静态.json$1',
|
||||
// params: 'http://127.0.0.1:5707/files/json/采集[zy]静态.json$1',
|
||||
// hostJs:$js.toString(()=>{
|
||||
//
|
||||
// }),
|
||||
@ -90,9 +91,10 @@ var rule = {
|
||||
log('当前程序支持批量请求[batchFetch],搜索限制已设置为16');
|
||||
}
|
||||
let _url = rule.params;
|
||||
log(`传入参数:${_url}`);
|
||||
if (_url && typeof (_url) === 'string' && /^(http|file)/.test(_url)) {
|
||||
if (_url.includes('#')) {
|
||||
let _url_params = _url.split('#');
|
||||
if (_url.includes('$')) {
|
||||
let _url_params = _url.split('$');
|
||||
_url = _url_params[0];
|
||||
rule.search_match = !!(_url_params[1]);
|
||||
if (_url_params.length > 2) { // 强制图片
|
||||
@ -271,6 +273,7 @@ var rule = {
|
||||
log('start:' + start);
|
||||
log('end:' + end);
|
||||
log('搜索模式:' + searchMode);
|
||||
log('精准搜索:' + rule.search_match);
|
||||
// log('t1:' + t1);
|
||||
if (start < canSearch.length) {
|
||||
let search_classes = canSearch.slice(start, end);
|
||||
|
Loading…
x
Reference in New Issue
Block a user