From a51608c3440e42f348ec1183f2f1a49dd82f5eb0 Mon Sep 17 00:00:00 2001 From: nrg101 Date: Fri, 10 Jan 2025 09:37:20 +0000 Subject: [PATCH 1/2] adjust regex replace to match WxH only at end of filename --- scrapers/VRPorn.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapers/VRPorn.yml b/scrapers/VRPorn.yml index 0fbdfeedd..0274c74c6 100644 --- a/scrapers/VRPorn.yml +++ b/scrapers/VRPorn.yml @@ -43,8 +43,8 @@ xPathScrapers: selector: //main/article/header//dl8-video/@poster postProcess: - replace: - - regex: -\d+x\d+ - with: "" + - regex: (.*)(-\d+x\d+)(.jpg) + with: $1$3 URL: &sceneUrl //link[@rel="canonical"]/@href sceneSearch: common: From b5ba307fa6799449107d02c266760fe1a85d99c8 Mon Sep 17 00:00:00 2001 From: nrg101 Date: Fri, 10 Jan 2025 09:48:51 +0000 Subject: [PATCH 2/2] generalise the dot extension to match any image type --- scrapers/VRPorn.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapers/VRPorn.yml b/scrapers/VRPorn.yml index 0274c74c6..e5061a081 100644 --- a/scrapers/VRPorn.yml +++ b/scrapers/VRPorn.yml @@ -43,7 +43,7 @@ xPathScrapers: selector: //main/article/header//dl8-video/@poster postProcess: - replace: - - regex: (.*)(-\d+x\d+)(.jpg) + - regex: (.*)(-\d+x\d+)(\.\w+$) with: $1$3 URL: &sceneUrl //link[@rel="canonical"]/@href sceneSearch: