From d114ed4abea7064e23986e708098f21cac65fa55 Mon Sep 17 00:00:00 2001 From: nrg101 <37197306+nrg101@users.noreply.github.com> Date: Fri, 10 Jan 2025 15:45:08 +0000 Subject: [PATCH] fix date parsing to handle month strings between 3 characters and full, e.g. Sept (#2162) --- scrapers/RealJamVR.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scrapers/RealJamVR.yml b/scrapers/RealJamVR.yml index de9f9ca73..e18bf4023 100644 --- a/scrapers/RealJamVR.yml +++ b/scrapers/RealJamVR.yml @@ -29,8 +29,14 @@ xPathScrapers: selector: //div[@class="specs-icon"]/following-sibling::strong postProcess: # both date formats are used interchangeably - - parseDate: Jan. 2, 2006 - - parseDate: January 2, 2006 + # e.g. + # Jan. 2, 2006 + # January 2, 2006 + # Sept. 2, 2024 + - replace: + - regex: ([\w]{3})([^\ ]+)?(.*) + with: $1$3 + - parseDate: Jan 2, 2006 Performers: &performers Name: //div[contains(@class,"scene-view")]/a[contains(@href,"/actor/")] Tags: &tags @@ -102,4 +108,4 @@ xPathScrapers: Image: //div[contains(@class, "actor-view")]//img/@src Piercings: //div[span[text()="Piercing:"]]/text() Tattoos: //div[span[text()="Tattoo:"]]/text() -# Last Updated January 8, 2025 +# Last Updated January 10, 2025