---
id: boxingtorrents
name: Boxing Torrents
description: "Boxing Torrents is a Private Torrent Tracker for BOXING"
language: en-US
type: private
encoding: UTF-8
links:
  - https://tc-boxing.com/

caps:
  categorymappings:
    - {id: 17, cat: TV/Sport, desc: "4K"}
    - {id: 16, cat: TV/Sport, desc: "Blu-ray"}
    - {id: 14, cat: TV/Sport, desc: "HD"}
    - {id: 8, cat: TV/Sport, desc: "DVD"}
    - {id: 1, cat: TV/Sport, desc: "Full - Excellent"}
    - {id: 3, cat: TV/Sport, desc: "Full - Fair"}
    - {id: 2, cat: TV/Sport, desc: "Full - Good"}
    - {id: 4, cat: TV/Sport, desc: "Full - Poor"}
    - {id: 10, cat: TV/Sport, desc: "Foreign - Excellent"}
    - {id: 11, cat: TV/Sport, desc: "Foreign - Fair"}
    - {id: 6, cat: TV/Sport, desc: "Foreign - Good"}
    - {id: 12, cat: TV/Sport, desc: "Foreign - Poor"}
    - {id: 13, cat: TV/Sport, desc: "Career Set"}
    - {id: 19, cat: TV/Documentary, desc: "Documentary"}
    - {id: 9, cat: TV/Sport, desc: "Amateur - Full"}
    - {id: 18, cat: TV/Sport, desc: "Instructional"}
    - {id: 7, cat: TV/Sport, desc: "Misc"}

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

settings:
  - name: username
    type: text
    label: Username
  - name: password
    type: password
    label: Password
  - name: freeleech
    type: checkbox
    label: Search freeleech only
    default: false
#  - name: sort
#    type: select
#    label: Sort requested from site
#    default: added
#    options:
#      added: created
#      seeders: seeders
#      size: size
#      name: title
#  - name: type
#    type: select
#    label: Order requested from site
#    default: DESC
#    options:
#      DESC: desc
#      ASC: asc
  - name: info_download
    type: info
    label: "Download Restrictions"
    default: "You must have uploaded at least 10GB before you are able to access all torrent sizes. Until then, you are restricted to torrents no larger than 2.5GB."

login:
  path: takelogin.php
  method: post
  inputs:
    username: "{{ .Config.username }}"
    password: "{{ .Config.password }}"
  error:
    - selector: td.embedded:contains("Login failed!")
  test:
    path: browse.php
    selector: a[href="logout.php"]

download:
  selectors:
    - selector: a[href^="download.php"]
      attribute: href

search:
  paths:
    # https://tc-boxing.com/browse.php?c16=1&c8=1&c14=1&incldead=1
    # https://tc-boxing.com/browse.php?search=tyson&cat=0&incldead=1
    # https://tc-boxing.com/browse.php?search=medina&cat=0&incldead=1&screen=1&champ=1&free=1
    - path: browse.php
  inputs:
    $raw: "{{ if .Categories }}{{ range .Categories }}c{{.}}=1&{{end}}{{ else }}cat=0{{ end }}"
    # 0 active, 1 incldead, 2 onlydead
    incldead: 1
    # 1 freeleech only, null all
    free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
    search: "{{ .Keywords }}"
# dropped sorting as this prevents the dateheaders from results!
#    sort: "{{ .Config.sort }}"
#    d: "{{ .Config.type }}"

  rows:
    selector: table.torrenttable > tbody > tr:has(a[href^="details.php?id="])
    filters:
      - name: andmatch
    dateheaders:
      selector: td[colspan] > b
      filters:
        - name: append
          args: " -07:00" # PDT
        - name: replace
          args: ["Torrents added ", ""]
        - name: dateparse
          args: "dddd, d. MMM, yyyy zzz"

  fields:
    category:
      selector: a[href^="browse.php?cat="]
      attribute: href
      filters:
        - name: querystring
          args: cat
    title:
      selector: a[href^="details.php?id="]
    details:
      selector: a[href^="details.php?id="]
      attribute: href
    download:
      selector: a[href^="details.php?id="]
      attribute: href
    files:
      selector: td:nth-last-child(7)
    size:
      selector: td:nth-last-child(5)
    grabs:
      selector: td:nth-last-child(4)
    seeders:
      selector: td:nth-last-child(3)
    leechers:
      selector: td:nth-last-child(2)
    downloadvolumefactor:
      case:
        "b:contains(\"FreeLeech\")": 0
        "*": 1
    uploadvolumefactor:
      text: 1
    minimumratio:
      text: 1.0
    minimumseedtime:
      # 3 day (as seconds = 3 x 24 x 60 x 60)
      text: 259200
# BT 4.0
