---
id: rptorrents
name: RPTorrents
description: "RPTorrents is a Private tracker for MOVIES / TV / GENERAL"
language: en-US
type: private
encoding: UTF-8
links:
  - https://rptorrents.com/

caps:
  categorymappings:
    - {id: 1, cat: PC/Games, desc: "Games PC"}
    - {id: 35, cat: PC/Games, desc: "Games Pack"}
    - {id: 2, cat: PC/0day, desc: "Apps Windows"}
    - {id: 3, cat: PC/Mac, desc: "Apps  Mac"}
    - {id: 4, cat: PC, desc: "Apps Linux"}
    - {id: 34, cat: PC/Mobile-Other, desc: "Apps Mobile"}
    - {id: 6, cat: TV/Anime, desc: "Movie Cartoons"}
    - {id: 37, cat: Movies/SD, desc: "Movies SD"}
    - {id: 7, cat: Movies/WEB-DL, desc: "Movies WEB-DL"}
    - {id: 32, cat: Movies/UHD, desc: "Movies 4k"}
    - {id: 9, cat: Movies/HD, desc: "Movies HD"}
    - {id: 10, cat: Movies/3D, desc: "Movies 3D"}
    - {id: 11, cat: Movies, desc: "Movies Pack"}
    - {id: 12, cat: Movies/BluRay, desc: "Movies Bluray"}
    - {id: 33, cat: Movies/HD, desc: "Movies Full-HD"}
    - {id: 40, cat: Movies/DVD, desc: "Movies DVD"}
    - {id: 41, cat: Movies/SD, desc: "Movies Xvid"}
    - {id: 14, cat: TV/HD, desc: "TV HD"}
    - {id: 15, cat: TV/WEB-DL, desc: "TV WEB-DL"}
    - {id: 16, cat: TV/SD, desc: "TV SD"}
    - {id: 17, cat: TV, desc: "TV Pack"}
    - {id: 18, cat: TV/Documentary, desc: "TV Documentary"}
    - {id: 19, cat: Audio/MP3, desc: "Music MP3"}
    - {id: 20, cat: Audio/Lossless, desc: "Music Flac"}
    - {id: 23, cat: Audio, desc: "Music Pack"}
    - {id: 22, cat: Audio/Video, desc: "Music Video"}
    - {id: 36, cat: XXX, desc: "Movie XXX"}
    - {id: 38, cat: Books/EBook, desc: "Books eBooks"}
    - {id: 39, cat: Audio/Audiobook, desc: "Books Audio"}

  modes:
    search: [q]
    tv-search: [q, season, ep]
    movie-search: [q]
    music-search: [q]
    book-search: [q]

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: id
    options:
      id: created
      seeders: seeders
      size: size
      name: title
  - name: type
    type: select
    label: Order requested from site
    default: desc
    options:
      desc: desc
      asc: asc

login:
  path: account-login.php
  method: post
  inputs:
    username: "{{ .Config.username }}"
    password: "{{ .Config.password }}"
    remember: yes
  error:
    - selector: div.myFrame-caption:contains("Access Denied")
      message:
        selector: div.myFrame-content
  test:
    path: torrents-search.php
    selector: a[href="account-logout.php"]

search:
  paths:
    - path: torrents-search.php
  inputs:
    $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
    search: "{{ .Keywords }}"
    # 0 name & desc, 1 name, 2 desc, 3 genre
    incldesc: 1
    # 0 active, 1 incldead, 2 onlydead
    incldead: 1
    # 0 inclfree, 1 notfree, 2 onlyfree
    freeleech: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
    # 0 both, 1 localonly, 2 extonly
    inclexternal: 0
    # 0 all, 1 English, 2 etc...
    lang: 0
    sort: "{{ .Config.sort }}"
    order: "{{ .Config.type }}"

  rows:
    selector: tr.t-row

  fields:
    category:
      selector: a[href^="torrents.php?cat="]
      attribute: href
      filters:
        - name: querystring
          args: cat
    title:
      selector: a[href^="torrents-details.php?id="]
      attribute: title
    details:
      selector: a[href^="torrents-details.php?id="]
      attribute: href
    download:
      selector: a[href^="download.php?id="]
      attribute: href
    size:
      selector: td:nth-child(4)
    date:
      selector: td:nth-child(5)
      filters:
        - name: append
          args: " +02:00" # EET
        - name: dateparse
          args: "02.01.200615:04:05 -07:00"
    grabs:
      selector: td:nth-child(7)
    seeders:
      selector: td:nth-child(8)
    leechers:
      selector: td:nth-child(9)
    downloadvolumefactor:
      case:
        img[src="images/free.gif"]: 0
        img[src="images/t_extern.png"]: 0
        "*": 1
    uploadvolumefactor:
      case:
        img[src="images/t_extern.png"]: 0
        "*": 1
    minimumratio:
      text: 1.0
# TorrentTrader-Ro 3.0
