name: ClubSeventeen
sceneByURL:
  - action: scrapeXPath
    url:
      - clubseventeen.com/video.php
      - clubsweethearts.com/video.php
    scraper: sceneScraper
galleryByURL:
  - action: scrapeXPath
    url:
      - clubseventeen.com/photo.php
      - clubsweethearts.com/photo.php
    scraper: galleryScraper

xPathScrapers:
  sceneScraper:
    scene:
      Title:
        selector: //h3[contains(@class,"dvd-title")]/span|//h1[contains(@class,"update-info-title")]
      Performers:
        Name:
          selector: //a[contains(@href,"girl.php")]/text()
          postProcess:
            - replace:
                - regex: \s/\s.+ # clubseventeen appends the aliases to the performer's name with a " / "
                  with:
      Tags:
        Name:
          selector: //div[@class="top"]//a[contains(@href,"niche.php")]/span|//a[contains(@href,"niche.php")]/text()
      Date:
        selector: //div[@class='top']/p[contains(.,"DATE ADDED:")] | //i[contains(@class,'fa-calendar')]//following-sibling::b
        postProcess:
          - replace:
              - regex: .+\s(\d{2}-\d{2}-\d{4}).+
                with: $1
          - parseDate: 02-01-2006
      Details:
        selector: //div[@class='bottom']/p[@class='mt-0 hidden-lg']
      Image:
        selector: //video[@id="portal-video"]/@poster|//div[contains(@class,'video-wrapper')]/div/@data-image
      Studio:
        Name:
          selector: //b[contains(text(),"Studio:")]//b[contains(@class,"special-link")]

  galleryScraper:
    gallery:
      Title:
        selector: //h3[contains(@class,"dvd-title")]/span
      Performers:
        Name:
          selector: //div[@class="middle"]//a[contains(@href,"girl.php")]/text()
          postProcess:
            - replace:
                - regex: \s/\s.+ # clubseventeen appends the aliases to the performer's name with a " / "
                  with:
      Tags:
        Name:
          selector: //div[@class="top"]//a[contains(@href,"niche.php")]/span
      Date:
        selector: //div[@class='top']/p[contains(.,"DATE ADDED:")]
        postProcess:
          - replace:
              - regex: .+\s(\d{2}-\d{2}-\d{4}).+
                with: $1
          - parseDate: 02-01-2006
      Details: # couldn't find an actual photoset with a description to test this
        selector: //div[@class='bottom']/p[@class='mt-0 hidden-lg']
      Studio:
        Name:
          fixed: ClubSeventeen
# Last Updated Mar 26, 2024
