Skip to content

Commit

Permalink
fix: adjust regex replace to match WxH only at end of filename (vrpor…
Browse files Browse the repository at this point in the history
…n.com) (#2161)

* adjust regex replace to match WxH only at end of filename

* generalise the dot extension to match any image type
  • Loading branch information
nrg101 authored Jan 10, 2025
1 parent ce8fc0c commit 246887d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapers/VRPorn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 246887d

Please sign in to comment.