name: AssumeThePosition
# requires: py_common
sceneByURL:
  - action: scrapeJson
    url:
      - assumethepositionstudios.com/trailer
    scraper: sceneScraper
    queryURL: "https://assumethepositionstudios.com/api/update/{url}/trailer/"
    queryURLReplace:
      url:
        - regex: '.+/trailer\?updateId=(\d+).*'
          with: "${1}"
  - action: scrapeJson
    url:
      - worstbehaviorproductions.com/trailer
    scraper: sceneScraper
    queryURL: "https://worstbehaviorproductions.com/api/update/{url}/trailer/"
    queryURLReplace:
      url:
        - regex: '.+/trailer\?updateId=(\d+).*'
          with: "${1}"
sceneByFragment:
  action: script
  script:
    - python
    - AssumeThePositionStudios.py
    - sceneByFragment
jsonScrapers:
  sceneScraper:
    scene:
      Title: data.scene.title
      Details:
        selector: data.scene.description
        postProcess:
          - replace:
              - regex: (.*?)[A-Z,/'\s]+\.?$
                with: $1
      Date: data.live_date
      Image:
        selector: "[data.producer.url,data.image]"
        concat: "/"
      Performers:
        Name: data.models.#.name
      Studio:
        Name: data.producer.name
      Tags:
        Name:
          selector: data.scene.description
          postProcess:
            - replace:
                - regex: (.*?)([A-Z,/'\s]+)\.?$
                  with: $2
                - regex: ',\s+'
                  with: ","
          split: ","
# Last Updated January 2, 2023
