Skip to content

fix: adjust regex replace to match WxH only at end of filename (vrporn.com)#2161

Merged
Maista6969 merged 2 commits intostashapp:masterfrom
nrg101:fix-vrporn
Jan 10, 2025
Merged

fix: adjust regex replace to match WxH only at end of filename (vrporn.com)#2161
Maista6969 merged 2 commits intostashapp:masterfrom
nrg101:fix-vrporn

Conversation

@nrg101
Copy link
Contributor

@nrg101 nrg101 commented Jan 10, 2025

Scraper type(s)

  • sceneByURL

Examples to test

Short description

Though #2159 was an improvement to get higher resolution images, there is an edge case where the filename includes more than one WxH occurrence, e.g.

https://vrporn.com/trans-the-best-teen-compilation/
has
https://mcdn.vrporn.com/files/20240925170921/The-Best-Teen-Compilation_Hard_slider-2000x1000-1-1000x562.jpg
which needs to only remove the -WxH at the end to become
https://mcdn.vrporn.com/files/20240925170921/The-Best-Teen-Compilation_Hard_slider-2000x1000-1.jpg
which exists

This regex replace adjustment achieves this.

@nrg101 nrg101 mentioned this pull request Jan 10, 2025
1 task
@Maista6969 Maista6969 merged commit 246887d into stashapp:master Jan 10, 2025
1 check passed
@nrg101 nrg101 deleted the fix-vrporn branch January 20, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants