From 6dc4d18e40d9d4ccf0a6af2cc1fff8da50450795 Mon Sep 17 00:00:00 2001 From: luckiestone Date: Sun, 16 Oct 2022 01:23:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCG=E4=B8=AD=E6=96=87=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=97=B6=E8=BF=94=E5=9B=9E=E4=B8=8D=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sites/cinemageddon.net/getSearchResult.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/resource/sites/cinemageddon.net/getSearchResult.js b/resource/sites/cinemageddon.net/getSearchResult.js index d1a7f29bf..86642dd16 100644 --- a/resource/sites/cinemageddon.net/getSearchResult.js +++ b/resource/sites/cinemageddon.net/getSearchResult.js @@ -1,3 +1,15 @@ +if (!"".getQueryString) { + String.prototype.getQueryString = function(name, split) { + if (split == undefined) split = "&"; + var reg = new RegExp( + "(^|" + split + "|\\?)" + name + "=([^" + split + "]*)(" + split + "|$)" + ), + r; + if ((r = this.match(reg))) return decodeURI(r[2]); + return null; + }; +} + (function(options) { class Parser { constructor() { @@ -26,7 +38,10 @@ let results = []; // 获取种子列表行 let rows = options.page.find(options.resultSelector); - if (rows.length == 0) { + const browsecheck = options.page + .find("a[href*='browse.php?page']:contains('-'):last") + .attr("href"); + if (rows.length == 0 || browsecheck) { options.status = ESearchResultParseStatus.torrentTableIsEmpty; //`[${options.site.name}]没有定位到种子列表,或没有相关的种子`; return results; }