From 246887dea49dcaa0503036903d45d4bb203e2138 Mon Sep 17 00:00:00 2001 From: nrg101 <37197306+nrg101@users.noreply.github.com> Date: Fri, 10 Jan 2025 15:43:43 +0000 Subject: [PATCH] fix: adjust regex replace to match WxH only at end of filename (vrporn.com) (#2161) * adjust regex replace to match WxH only at end of filename * generalise the dot extension to match any image type --- scrapers/VRPorn.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapers/VRPorn.yml b/scrapers/VRPorn.yml index 0fbdfeedd..e5061a081 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+)(\.\w+$) + with: $1$3 URL: &sceneUrl //link[@rel="canonical"]/@href sceneSearch: common: