Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jan 10, 2025

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
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