---
  site: puntorrent
  name: PuntoTorrent
  description: "PuntoTorrent is a SPANISH site for General content"
  language: es-es
  type: private
  encoding: UTF-8
  links:
    - https://xbt.puntotorrent.ch/

  caps:
    categorymappings:
      - {id: 17, cat: Movies/Other, desc: "VCD/SVCD - SVCD/VCD"}
      - {id: 78, cat: Movies/Other, desc: "VCD/SVCD - Estrenos VCD/SVCD"}
      - {id: 14, cat: Movies/SD, desc: "XVID - Series"}
      - {id: 45, cat: Movies/SD, desc: "XVID - Animación"}
      - {id: 46, cat: Movies/SD, desc: "XVID - Deportes"}
      - {id: 47, cat: Movies/SD, desc: "XVID - Documentales"}
      - {id: 33, cat: Movies/SD, desc: "XVID - Estrenos"}
      - {id: 48, cat: Movies/SD, desc: "XVID - Películas"}
      - {id: 114, cat: Movies/SD, desc: "XVID - Estrenos BajaCalidad"}
      - {id: 12, cat: Movies/SD, desc: "XVID - Adulto (+18)"}
      - {id: 51, cat: Movies/SD, desc: "XVID - Música"}
      - {id: 37, cat: Movies/DVD, desc: "DVD - Animación"}
      - {id: 38, cat: Movies/DVD, desc: "DVD - Deportes"}
      - {id: 39, cat: Movies/DVD, desc: "DVD - Documentales"}
      - {id: 40, cat: Movies/DVD, desc: "DVD - Películas"}
      - {id: 41, cat: Movies/DVD, desc: "DVD - Series"}
      - {id: 42, cat: Movies/DVD, desc: "DVD - Adulto (+18)"}
      - {id: 43, cat: Movies/DVD, desc: "DVD - Música"}
      - {id: 106, cat: Movies/SD, desc: "HDRip - Animación"}
      - {id: 107, cat: Movies/SD, desc: "HDRip - Deportes"}
      - {id: 108, cat: Movies/SD, desc: "HDRip - Documentales"}
      - {id: 109, cat: Movies/SD, desc: "HDRip - Películas"}
      - {id: 110, cat: Movies/SD, desc: "HDRip - Series"}
      - {id: 112, cat: Movies/SD, desc: "HDRip - Adulto (+18)"}
      - {id: 111, cat: Movies/SD, desc: "HDRip - Música"}
      - {id: 117, cat: Movies/3D, desc: "3D - Animación"}
      - {id: 118, cat: Movies/3D, desc: "3D - Deportes"}
      - {id: 119, cat: Movies/3D, desc: "3D - Documentales"}
      - {id: 120, cat: Movies/3D, desc: "3D - Películas"}
      - {id: 121, cat: Movies/3D, desc: "3D - Adulto (+18)"}
      - {id: 126, cat: Movies/HD, desc: "Micro HD - Animación"}
      - {id: 127, cat: Movies/HD, desc: "Micro HD - Deportes"}
      - {id: 128, cat: Movies/HD, desc: "Micro HD - Documentales"}
      - {id: 57, cat: Movies/HD, desc: "Micro HD - Películas"}
      - {id: 124, cat: Movies/HD, desc: "Micro HD - Series"}
      - {id: 129, cat: Movies/HD, desc: "Micro HD - Adulto"}
      - {id: 130, cat: Movies/HD, desc: "Micro HD - Música"}
      - {id: 53, cat: Movies/HD, desc: "HD - Animación"}
      - {id: 54, cat: Movies/HD, desc: "HD - Deportes"}
      - {id: 55, cat: Movies/HD, desc: "HD - Documentales"}
      - {id: 56, cat: Movies/HD, desc: "HD - BDrip/BDremux/FullBD"}
      - {id: 58, cat: Movies/HD, desc: "HD - WEB-DL/Line Dubbed"}
      - {id: 59, cat: Movies/HD, desc: "HD - Series"}
      - {id: 63, cat: Movies/HD, desc: "HD - Adulto (+18)"}
      - {id: 61, cat: Movies/HD, desc: "HD - Música"}
      - {id: 136, cat: Movies/HD, desc: "UHD - Animación"}
      - {id: 137, cat: Movies/HD, desc: "UHD - Deportes"}
      - {id: 138, cat: Movies/HD, desc: "UHD - Documentales"}
      - {id: 139, cat: Movies/HD, desc: "UHD - Películas"}
      - {id: 140, cat: Movies/HD, desc: "UHD - Series"}
      - {id: 141, cat: Movies/HD, desc: "UHD - Adulto (+18)"}
      - {id: 69, cat: Audio/MP3, desc: "MP3"}
      - {id: 70, cat: Audio/Lossless, desc: "FLAC"}
      - {id: 71, cat: Audio/Other, desc: "Otros Formatos"}
      - {id: 74, cat: PC, desc: "Software - Windows"}
      - {id: 75, cat: PC, desc: "Software - Linux"}
      - {id: 76, cat: PC/Mac, desc: "Software - MAC"}
      - {id: 77, cat: PC, desc: "Software - Otras Plataformas"}
      - {id: 115, cat: PC/Phone-Android, desc: "Software - Android"}
      - {id: 25, cat: Console, desc: "Juegos - Microsoft"}
      - {id: 26, cat: Console, desc: "Juegos - Sony"}
      - {id: 27, cat: PC/Games, desc: "Juegos - PC"}
      - {id: 28, cat: Console, desc: "Juegos - Nintendo"}
      - {id: 34, cat: Other, desc: "Juegos - Otros"}
      - {id: 11, cat: Other, desc: "Juegos - Emuladores/Otras P."}
      - {id: 6, cat: Books/Ebook, desc: "eBooks - eBooks"}
      - {id: 131, cat: Books/Comics, desc: "eBooks - Cómics"}
      - {id: 134, cat: Books, desc: "eBooks - Manga"}
      - {id: 132, cat: Books/Magazines, desc: "eBooks - Revistas"}
      - {id: 7, cat: Books, desc: "eBooks - Otros"}
      - {id: 133, cat: Books, desc: "eBooks - Adulto (+18)"}    
      - {id: 92, cat: Other, desc: "Otros formatos - Animación"}
      - {id: 93, cat: Other, desc: "Otros formatos - Deportes"}
      - {id: 94, cat: Other, desc: "Otros formatos - Documentales"}
      - {id: 95, cat: Other, desc: "Otros formatos - Películas"}
      - {id: 97, cat: Other, desc: "Otros formatos - Series"}
      - {id: 98, cat: Other, desc: "Otros formatos - Adulto (+18)"}
      - {id: 99, cat: Other, desc: "Otros formatos - Música"}
      - {id: 10, cat: Other, desc: "Otros formatos - Estrenos"}
    modes:
      search: [q]

  login:
    path: index.php?page=login
    method: post
    inputs:
      uid: "{{ .Config.username }}"
      pwd: "{{ .Config.password }}"
    error:
      - selector: .lista>span
    test:
      path: index.php
      selector: form[name="jump1"]

  search:
    path: index.php
    keywordsfilters:
      - name: re_replace
        args: ["S0?(\\d{1,2})E(\\d{1,2})", "T$1 $2"]
    inputs:
      page: "torrents"
      $raw: "&category={{range .Categories}}{{.}};{{end}}"
      active: "1"
      search: "{{ .Keywords }}"
    rows:
      selector: "#mcol .block-content-l table table.lista > tbody > tr:not(:first-child):not(.descripcion)"
    fields:
      category:
        selector:  td:nth-child(1) a
        attribute: href
        filters:
          - name: querystring
            args: category
      title:
        selector: td:nth-child(2) a
        filters:
          - name: append
            args: " [spanish]"
      details:
        selector: td:nth-child(3) a
        attribute: href
      size:
        selector: td:nth-child(6)
      seeders:
        selector: td:nth-child(8) a
      leechers:
        selector: td:nth-child(9) a
      grabs:
        selector: td:nth-child(10)
        filters:
          - name: replace
            args: ["---", "0"]
      date:
        selector: td:nth-child(5)
        filters:
          - name: dateparse
            args: "02/01/2006"
      download:
        selector: a[href^="download.php"]
        attribute: href
      downloadvolumefactor: 
        case:
          img[src$="golden.gif"]: "0"
          img[src$="silver.gif"]: "0.5"
          "*": "1"
      uploadvolumefactor: 
          case:
            img[src$="x2.gif"]: "2"
            img[src$="x3.gif"]: "3"
            "*": "1"
