name: vipissy
sceneByURL:
  - action: scrapeXPath
    url:
      - vipissy.com
    scraper: sceneScraper
sceneByName:
  action: scrapeXPath
  scraper: sceneSearch
  queryURL: "https://www.vipissy.com/updates?search={}"
sceneByQueryFragment:
  action: scrapeXPath
  queryURL: "{url}"
  scraper: sceneScraper
xPathScrapers:
  sceneScraper:
    common:
      $performer: //dl/dd/a
    scene:
      Title:
        selector: //section[@class="downloads"]/strong/text()
        postProcess:
          - replace:
              - regex: ^(.*)[—]\s+
                with:
      Date:
        # selector: //dl/dd[contains(text(),"Released on:")]/text()
        selector: //dt[i[@class="glyphicon glyphicon-calendar"]]/following-sibling::dd[1]/text()
        postProcess:
          - parseDate: Jan 2, 2006
      Details: //div[@class="show_more"]/text()[1]
      Tags:
        Name: //p[@class="tags"]/a/text()
      Performers:
        Name: $performer/text()
      Studio:
        Name:
          fixed: Vipissy
      Image: //div[@id="videoplayer"]/video/@poster
  sceneSearch:
    common:
      $scenerow: //article[@id="updates-list"]/div/ul/li
    scene:
      Title:
        selector: $scenerow//a[@class="image-wrapper"]/@title
      URL:
        selector: $scenerow//a[@class="image-wrapper"]/@href
        postProcess:
          - replace:
              - regex: ^
                with: https://www.vipissy.com
      Image: $scenerow//img[@class="thumb"]/@src
      Date:
        selector: $scenerow//span[@class="date"]/text()
        postProcess:
          - parseDate: 01/02/2006
      # Needs support / fix on scrapers end to "group" them properly.
      # Current selector results in all performers on the page being listed for every found scene
      #Performers:
      #  Name: $scenerow//span//strong//a/text()
# Last Updated September 22, 2021
