From 44744859d7b861bbd1e3941dda32035ee1525955 Mon Sep 17 00:00:00 2001 From: Maista6969 Date: Tue, 9 Apr 2024 07:25:34 +0200 Subject: [PATCH] Make JAV code regex a little more robust for r18.dev --- scrapers/R18.dev.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scrapers/R18.dev.yml b/scrapers/R18.dev.yml index b9ffef7d6..a86293788 100644 --- a/scrapers/R18.dev.yml +++ b/scrapers/R18.dev.yml @@ -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: