<commit_before>---
  site: xthor
  name: Xthor
  language: fr-fr
  links:
    - https://xthor.bz/

  settings:
    - name: cookie
      type: text
      label: Cookie

  caps:
    categories:
            # Films
            1: Movies/BluRay      # Films / BluRay FR
            2: Movies/BluRay      # Films / Remux
            3: Movies/3D          # Films / Encode 3D
            4: Movies/HD          # Films / 1080p x264
            100: Movies/HD        # Films / 1080p x265
            5: Movies/HD          # Films / 720p x264
            7: Movies/SD          # Films / SD x264
            6: Movies/SD          # Films / Xvid
            8: Movies/DVD         # Films / DVD
            94: Movies            # Films / WEBDL
            95: Movies            # Films / WEBRiP
            12: TV/Documentary    # Films / Documentaire
            31: Movies            # Films / Dessins Animés
            33: TV/Other          # Films / Spectacle
            9: Movies/Other       # Films / VOSTFR

            # Séries
            104: TV               # Séries / BluRay
            13: TV                # Séries / Pack VF
            15: TV/HD             # Séries / HD FR
            14: TV/SD             # Séries / TV FR
            32: TV/Anime          # Séries / Dessins Animés
            101: TV/Anime         # Séries / Packs Anime
            34: TV/Sport          # Séries / Sport
            30: TV                # Séries / Emission TV
            98: TV/Other          # Séries / Pack VOSTFR
            17: TV/Other          # Séries / HD VOSTFR
            16: TV/Other          # Séries / TV VOSTFR

            # Livres
            24: Books             # Livres / Romans
            96: Books/Magazines   # Livres / Magazines
            99: Books             # Livres / Bandes dessinées
            102: Books/Comics     # Livres / Comics
            103: Books            # Livres / Mangas

            # Logiciels
            25: PC/Games          # Logiciels / Jeux PC
            27: Console           # Logiciels / Playstation
            26: Console           # Logiciels / XboX
            28: Console/Wii       # Logiciels / Wii
            29: Console/NDS       # Logiciels / NDS
            21: PC                # Logiciels / Applis PC
            22: PC/Mac            # Logiciels / Applis Mac
            23: PC/Phone-Other    # Logiciels / Smartphone

    modes:
      search: [q]
      tv-search: [q, season, ep]

  login:
    method: cookie
    inputs:
      cookie: "{{ .Config.cookie }}"
    test:
      path: /usercp.php

  search:
    path: browse.php
    inputs:
      $raw: "{{range .Categories}}c{{.}}=1&{{end}}"
      searchin: "title"
      incldead: 0
      group: 0
      search: "{{ .Query.Keywords }}"
    rows:
      selector: div.article > table:nth-child(11) > tbody > tr:has(a[href^="download.php?torrent="])
    fields:
      title:
        selector: a[href^="details.php?id="]
      category:
        selector: a[href^="browse.php?cat="]
        attribute: href
        filters:
          - name: querystring
            args: cat
      comments:
        selector: a[href^="details.php?id="]
        attribute: href
      download:<commit_msg>Change Xthor Tracker login method to POST (#240)<commit_after>---
  site: xthor
  name: Xthor
  language: fr-fr
  links:
    - https://xthor.bz/

  caps:
    categories:
            # Films
            1: Movies/BluRay      # Films / BluRay FR
            2: Movies/BluRay      # Films / Remux
            3: Movies/3D          # Films / Encode 3D
            4: Movies/HD          # Films / 1080p x264
            100: Movies/HD        # Films / 1080p x265
            5: Movies/HD          # Films / 720p x264
            7: Movies/SD          # Films / SD x264
            6: Movies/SD          # Films / Xvid
            8: Movies/DVD         # Films / DVD
            94: Movies            # Films / WEBDL
            95: Movies            # Films / WEBRiP
            12: TV/Documentary    # Films / Documentaire
            31: Movies            # Films / Dessins Animés
            33: TV/Other          # Films / Spectacle
            9: Movies/Other       # Films / VOSTFR

            # Séries
            104: TV               # Séries / BluRay
            13: TV                # Séries / Pack VF
            15: TV/HD             # Séries / HD FR
            14: TV/SD             # Séries / TV FR
            32: TV/Anime          # Séries / Dessins Animés
            101: TV/Anime         # Séries / Packs Anime
            34: TV/Sport          # Séries / Sport
            30: TV                # Séries / Emission TV
            98: TV/Other          # Séries / Pack VOSTFR
            17: TV/Other          # Séries / HD VOSTFR
            16: TV/Other          # Séries / TV VOSTFR

            # Livres
            24: Books             # Livres / Romans
            96: Books/Magazines   # Livres / Magazines
            99: Books             # Livres / Bandes dessinées
            102: Books/Comics     # Livres / Comics
            103: Books            # Livres / Mangas

            # Logiciels
            25: PC/Games          # Logiciels / Jeux PC
            27: Console           # Logiciels / Playstation
            26: Console           # Logiciels / XboX
            28: Console/Wii       # Logiciels / Wii
            29: Console/NDS       # Logiciels / NDS
            21: PC                # Logiciels / Applis PC
            22: PC/Mac            # Logiciels / Applis Mac
            23: PC/Phone-Other    # Logiciels / Smartphone

  modes:
    search: [q]
    tv-search: [q, season, ep]

  login:
    path: /takelogin.php
    method: post
    form: form
    inputs:
      username: "{{ .Config.username }}"
      password: "{{ .Config.password }}"
      submitme: "X"
      returnto: "/"
    test:
      path: /usercp.php

  search:
    path: browse.php
    inputs:
      $raw: "{{range .Categories}}c{{.}}=1&{{end}}"
      searchin: "title"
      incldead: 0
      group: 0
      search: "{{ .Query.Keywords }}"
    rows:
      selector: div.article > table:nth-child(11) > tbody > tr:has(a[href^="download.php?torrent="])
    fields:
      title:
        selector: a[href^="details.php?id="]
      category:
        selector: a[href^="browse.php?cat="]
        attribute: href
        filters:
          - name: querystring
            args: cat
      comments:
        selector: a[href^="details.php?id="]
        attribute: href
      download:
{'fraction_non_alphanumeric': 0.09509155254654562, 'fraction_numerical': 0.032466533312817354, 'mean_word_length': 1.0947470190138575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3354524', 'n_tokens_mistral': 2087, 'n_tokens_neox': 1914, 'n_words': 518}