---
id: gaytorrentru
name: GAYtorrent.ru
description: "GayTorrent.ru is a Private Torrent Tracker for GAY 3X"
language: en-US
type: private
encoding: UTF-8
links:
  - https://www.gaytor.rent/
legacylinks:
  - https://www.gaytorrent.ru/

settings:
  - name: cookie
    type: text
    label: Cookie
  - name: info_cookie
    type: info_cookie
  - name: freeleech
    type: checkbox
    label: Search freeleech only
    default: false
  - name: info_hidden
    type: info
    label: "Hidden categories"
    default: "Results for categories hidden in account profile will not be visible."
  - name: info_limit
    type: info
    label: "Download Ratio"
    default: "GayTorrent.ru has a daily download slot limit as defined by your ratio, your uploads, your donations, etc. If downloads <b>fail</b> then you have exceeded your allocation. Access the web site to find more info <a href=\"https://www.gaytor.rent/rationator.php\" target=\"_blank\">here</a>"
  - name: sort
    type: select
    label: Sort requested from site
    default: added
    options:
      added: created
      seeds: seeders
      size: size
      name: title
  - name: type
    type: select
    label: Order requested from site
    default: desc
    options:
      desc: desc
      asc: asc
  - name: info_activity
    type: info
    label: Account Inactivity
    default: "Unused accounts (both upload and download are zero) are disabled by the system after 60 days of no login. Used accounts with prior activity (upload and/or download) are disabled by the system after 240 days of no login."

caps:
  categorymappings:
    - {id: 69, cat: XXX, desc: "AI"}
    - {id: 62, cat: XXX, desc: "Amateur"}
    - {id: 29, cat: XXX, desc: "Anal"}
    - {id: 46, cat: XXX, desc: "Anime Games"}
    - {id: 30, cat: XXX, desc: "Asian"}
    - {id: 43, cat: XXX, desc: "Bareback"}
    - {id: 19, cat: XXX, desc: "BDSM"}
    - {id: 17, cat: XXX, desc: "Bears"}
    - {id: 59, cat: XXX, desc: "Bisexual"}
    - {id: 44, cat: XXX, desc: "Black"}
    - {id: 50, cat: Books, desc: "Books & Magazines"}
    - {id: 9, cat: XXX, desc: "Chubbies"}
    - {id: 7, cat: XXX, desc: "Clips"}
    - {id: 48, cat: Books/Comics, desc: "Comic & Yaoi"}
    - {id: 5, cat: XXX, desc: "Daddies / Sons"}
    - {id: 67, cat: XXX, desc: "Dildos"}
    - {id: 66, cat: XXX, desc: "Fan Sites"}
    - {id: 34, cat: XXX, desc: "Fetish"}
    - {id: 68, cat: XXX, desc: "Fisting"}
    - {id: 27, cat: XXX, desc: "Grey / Older"}
    - {id: 32, cat: XXX, desc: "Group-Sex"}
    - {id: 63, cat: XXX, desc: "Homemade"}
    - {id: 12, cat: XXX, desc: "Hunks"}
    - {id: 33, cat: XXX/ImageSet, desc: "Images"}
    - {id: 53, cat: XXX, desc: "Interracial"}
    - {id: 57, cat: XXX, desc: "Jocks"}
    - {id: 35, cat: XXX, desc: "Latino"}
    - {id: 36, cat: XXX, desc: "Mature"}
    - {id: 58, cat: PC, desc: "Media Programs"}
    - {id: 37, cat: XXX, desc: "Member"}
    - {id: 54, cat: XXX, desc: "Middle Eastern"}
    - {id: 38, cat: XXX, desc: "Military"}
    - {id: 39, cat: XXX, desc: "Oral-Sex"}
    - {id: 64, cat: XXX, desc: "Scat"}
    - {id: 56, cat: XXX, desc: "Softcore"}
    - {id: 40, cat: XXX, desc: "Solo"}
    - {id: 61, cat: XXX, desc: "Straight older"}
    - {id: 60, cat: XXX, desc: "Straight younger"}
    - {id: 45, cat: Movies, desc: "Themed Movie"}
    - {id: 47, cat: XXX, desc: "Trans"}
    - {id: 70, cat: XXX, desc: "Trans/FTM"}
    - {id: 1, cat: TV, desc: "TV / Episodes"}
    - {id: 41, cat: XXX, desc: "Twinks"}
    - {id: 42, cat: XXX, desc: "Vintage"}
    - {id: 51, cat: XXX, desc: "Voyeur"}
    - {id: 65, cat: XXX, desc: "Wrestling and Sports"}
    - {id: 28, cat: XXX, desc: "Youngblood"}

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

login:
  # using cookie method because login page has embedded Cloudflare turnstile
  method: cookie
  inputs:
    cookie: "{{ .Config.cookie }}"
  test:
    path: my.php
    selector: a[href$="/logout.php"]

search:
  paths:
    - path: search.php
  inputs:
    $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
    search: "{{ .Keywords }}"
    view: legacy
    # 0 active, 1 both, 2 dead
    incldead: 1
    # where to search: name,     descr,    filename, freeleech only, wishlist
    # where to search: inname=1, indesc=1, infn=1,   infl=1,         inbook=1
    inname: 1
    infl: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
    page: 0
    orderby: "{{ .Config.sort }}"
    sort: "{{ .Config.type }}"

  headers:
    Referer: ["{{ .Config.sitelink }}search.php?view=legacy"]

  rows:
    selector: table#browsetable > tbody > tr.browse_row

  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
    _id:
      selector: a[href^="details.php?id="]
      attribute: href
      filters:
        - name: querystring
          args: id
    download:
      # turn href="download.php/0738d444362fa610a08fb87b5c1bec798ca1731adbf3175b/GUARATORO.torrent
      # into href="/download.php?id=0738d444362fa610a08fb87b5c1bec798ca1731adbf3175b&n=GUARATORO.torrent&p=dodownload
      text: "download.php?id={{ .Result._id }}&n={{ .Result.title }}.torrent&p=dodownload"
    poster:
      # turn href="details.php?id= ... &hit=1" data-hover-thumbs='[{"p":"2026\/24\/33749943.jpg","x":180,"y":270,"cid":33749944,"full":"2026\/24\/33749944.jpg"}, ... ]'
      # into https://pic.gaytor.rent/tpics/2026/24/33749943.jpg
      selector: a[href^="details.php?id="]
      attribute: data-hover-thumbs
      filters:
        - name: regexp
          args: p\"\:\"(.+?)\"
        - name: prepend
          args: "https://pic.gaytor.rent/tpics/"
    grabs:
      selector: div.ttimes
    files:
      selector: div.tfiles
    size:
      selector: div.tsize
    seeders:
      optional: true
      default: 0
      selector: a[href$="&toseeders=1"]
    leechers:
      optional: true
      default: 0
      selector: a[href$="&todlers=1"]
    date:
      selector: div.tadded > time
      filters:
        - name: append
          args: " +02:00" # EET
        - name: dateparse
          args: "yyyy-MM-ddHH:mm:ss zzz"
    description:
      selector: div.browsedesc span:last-child
    downloadvolumefactor:
      case:
        font:contains("FREELEECH !"): 0
        "*": 1
    uploadvolumefactor:
      text: 1
    minimumratio:
      text: 1.0
# engine n/a
