From 859de99638f63ce151a67884281620131b4f517b Mon Sep 17 00:00:00 2001 From: haowenwu Date: Wed, 27 Mar 2024 10:48:12 +0800 Subject: [PATCH] fix(gtru): support uploads (#1772) * fix(gtru): support uploads * fix(gtru): support bonusPerHour --- resource/sites/www.gaytor.rent/config.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resource/sites/www.gaytor.rent/config.json b/resource/sites/www.gaytor.rent/config.json index 781faf92b..4ee27d53e 100644 --- a/resource/sites/www.gaytor.rent/config.json +++ b/resource/sites/www.gaytor.rent/config.json @@ -97,6 +97,10 @@ "selector": "td:contains('Join') + td", "filters": ["dateTime(query.text().split(' (')[0]).valueOf()"] }, + "uploads": { + "selector": "td:contains('uploaded')", + "filters": ["query.text().match(/and (.*) uploaded/)[1]"] + }, "seedingSize": { "selector": "#SeedingTorrents > div > table > tbody > tr:not(:first-of-type) > td:nth-of-type(3)", "filters": ["jQuery.map(query, (item) => {return $(item).text()})", "_self.getTotalSize(query)"] @@ -104,6 +108,10 @@ "seeding": { "selector": "#SeedingTorrents > div > table > tbody > tr:not(:first-of-type)", "filters": ["query.length"] + }, + "bonusPerHour": { + "selector": "#SeedingTorrents > div > table > tbody > tr:not(:first-of-type)", + "filters": ["query.length != 0 ? 0.5 : 0"] } } }