Skip to content

Commit

Permalink
fix date parsing to handle month strings between 3 characters and ful…
Browse files Browse the repository at this point in the history
…l, e.g. Sept (#2162)
  • Loading branch information
nrg101 authored Jan 10, 2025
1 parent 246887d commit d114ed4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions scrapers/RealJamVR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit d114ed4

Please sign in to comment.