name: hanime
sceneByFragment:
  action: scrapeXPath
  queryURL: https://hanime.tv/videos/hentai/{filename}
  queryURLReplace:
    filename:
      - regex: ^([a-z\-0-9]+)(\-[0-9]{3,4}p).*
        with: $1
  scraper: sceneScraper
sceneByURL:
  - action: scrapeXPath
    url:
      - hanime.tv/
    scraper: sceneScraper
xPathScrapers:
  sceneScraper:
    scene:
      Title: //h1[@class="tv-title"]/text()
      Date:
        selector: //div[@class="hvpimbc-item"]/div[contains(.,"Release Date")]/../div[@class="hvpimbc-text grey--text"]/text()
        postProcess:
          - parseDate: January 2, 2006
      Details: 
        selector: //div[@class="mt-3 mb-0 hvpist-description"]//text()
        concat: "\n\n"
      Tags:
        Name: //div[@class="hvpis-text grey--text text--lighten-1"]/a/div
      Studio:
        Name:
            selector: //div[@class="hvpimbc-item full"]/a[@class="hvpimbc-text"]/text()
      Image: 
        selector: //script[contains(., "poster_url")]
        postProcess:
          - replace:
              - regex: (.+?poster_url":")(.+?)(","cover_url".+)
                with: $2
              - regex: "u002F"
                with: ""
              - regex: \\
                with: /
              - regex: "static-assets.highwinds-cdn.com"
                with: "static-assets.droidbuzz.top"
              - regex: "https://"
                with: "https://i1.wp.com/"

# Last Updated May 22, 2023
