Skip to content

Commit

Permalink
Make JAV code regex a little more robust for r18.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Maista6969 committed Apr 9, 2024
1 parent a575e06 commit 4474485
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scrapers/R18.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ sceneByFragment:
queryURL: https://r18.dev/videos/vod/movies/detail/-/dvd_id={filename}/json
queryURLReplace:
filename:
# gets just the JAV ID out of the filename. This also removes the file extension which is pretty nice.
# You can have your filename be something like "Something Something ABC123 Something Something.mp4" and it will scrape as ABC123.
- regex: (.*[^a-zA-Z0-9])*([a-zA-Z-]+\d+)(.+)
with: $2
# Gets the JAV code from the filename using a modified version of the Javinizer regex
# https://regex101.com/r/aIm3op/2
- regex: .*?([a-zA-Z|tT28]+)-?(\d+)[zZ]?[eE]?(?:-pt)?(\d{1,2})?.*
with: $1$2
scraper: sceneSearchIndirect

sceneByURL:
Expand Down

0 comments on commit 4474485

Please sign in to comment.