name: insex
sceneByURL:
  - action: scrapeXPath
    url:
      - hardtied.com/ht
      - infernalrestraints.com/ir
      - insex.com/is
      - insexondemand.com/iod
      - realtimebondage.com/rtb
      - sexuallybroken.com/sb
    scraper: sceneScraper
  - action: scrapeXPath
    url:
      - topgrl.com/tg
    scraper: topgrlScraper
  - action: scrapeXPath
    url:
      - renderfiend.com/rf
    scraper: rfScraper

xPathScrapers:
  sceneScraper:
    common: &commonSelectors
      $studio: //title/text()
    scene:
      Title: &titleSelector //div[@class="is-size-5 has-text-weight-bold"]/text()
      Date:
        selector: &dateSelector //span[@class="tag is-dark"]/text()
      Details:
        selector: //div[@class="is-size-7 has-text-white-ter"]/preceding-sibling::div[1]/text()
        concat: "\n\n"
      Performers: &performersAttr
        Name: //div[@class="is-size-6 has-text-white-ter"]/a[@class="tag is-dark"]/text()
      Tags: &tagsAttr
        Name: //div[@class="is-size-7 has-text-white-ter"]/following-sibling::div/span/text()
      Studio:
        Name: $studio
      Image: &imageSelector //video-js[@id="videoPlayer" or @id="iodvideo"]/@poster

  topgrlScraper:
    common: *commonSelectors
    scene:
      Title:
        selector: *titleSelector
        # Topgrl site doesnt receive any updates anymore and lots of scene's have "[Archive]"  in the title.
        # No idea what makes those scene's different, but I'm assuming most people don't want to add that to the title in Stash.
        postProcess:
          - replace:
              - regex: (\[Archive\] )+(.*)
                with: $2
      Date:
        selector: *dateSelector
      Details:
        selector: //div[@class="is-size-5 has-text-weight-bold"]/following-sibling::div[3]/text()
        concat: "\n\n"
      Performers: *performersAttr
      Studio:
        Name: $studio
      Image: *imageSelector
      
  rfScraper:
    common: *commonSelectors
    scene:
      Title:
        selector: *titleSelector
      Date:
        selector: *dateSelector
      Details:
        selector: //div[@class="is-size-5 has-text-weight-bold"]/following-sibling::div[2]/text()
        concat: "\n\n"
      Performers: *performersAttr
      Studio:
        Name: $studio
      Image: *imageSelector

driver:
  cookies:
    - CookieURL: "https://hardtied.com"
      Cookies:
        - Name: "consent"
          Value: "yes"
          Domain: "hardtied.com"
          Path: "/"
    - CookieURL: "https://infernalrestraints.com"
      Cookies:
        - Name: "consent"
          Value: "yes"
          Domain: "infernalrestraints.com"
          Path: "/"
    - CookieURL: "https://insex.com"
      Cookies:
        - Name: "consent"
          Value: "yes"
          Domain: "insex.com"
          Path: "/"
    - CookieURL: "https://insexondemand.com"
      Cookies:
        - Name: "consent"
          Value: "yes"
          Domain: "insexondemand.com"
          Path: "/"
    - CookieURL: "https://realtimebondage.com"
      Cookies:
        - Name: "consent"
          Value: "yes"
          Domain: "realtimebondage.com"
          Path: "/"
    - CookieURL: "https://sexuallybroken.com"
      Cookies:
        - Name: "consent"
          Value: "yes"
          Domain: "sexuallybroken.com"
          Path: "/"

# Last Updated August 02, 2023
