---
id: torrentmasters
name: TorrentMasters
description: "TorrentMasters is a HUNGARIAN private tracker for MOVIES / TV / GENERAL"
language: hu-HU
type: private
encoding: UTF-8
links:
  - https://torrentmasters.info/

caps:
  categorymappings:
    - {id: 92, cat: Books/EBook, desc: "e-Book (ENG)"}
    - {id: 78, cat: Books/EBook, desc: "e-Book (HUN)"}
    - {id: 80, cat: Other, desc: "Egyéb"}
    - {id: 111, cat: Movies/SD, desc: "Film - Cam (HUN)"}
    - {id: 85, cat: Movies/DVD, desc: "Film - DVD/9 (ENG)"}
    - {id: 66, cat: Movies/DVD, desc: "Film - DVD/9 (HUN)"}
    - {id: 84, cat: Movies/HD, desc: "Film - HD (ENG)"}
    - {id: 68, cat: Movies/HD, desc: "Film - HD (HUN)"}
    - {id: 82, cat: Movies/SD, desc: "Film - XviD (ENG)"}
    - {id: 64, cat: Movies/SD, desc: "Film - XviD (HUN)"}
    - {id: 72, cat: PC/Games, desc: "Játék - ISO"}
    - {id: 73, cat: Console, desc: "Játék - Konzol"}
    - {id: 94, cat: PC/Games, desc: "Játék - RIP"}
    - {id: 79, cat: PC/Mobile-Other, desc: "Mobil/PDA"}
    - {id: 95, cat: PC, desc: "Programok - Egyéb (Win)"}
    - {id: 74, cat: PC/ISO, desc: "Programok - ISO (Win)"}
    - {id: 75, cat: PC/Mac, desc: "Programok - Linux/Unix/Mac OS"}
    - {id: 101, cat: TV/SD, desc: "Sorozat - DVD (ENG)"}
    - {id: 100, cat: TV/SD, desc: "Sorozat - DVD (HUN)"}
    - {id: 89, cat: TV/HD, desc: "Sorozat - HD (ENG)"}
    - {id: 97, cat: TV/HD, desc: "Sorozat - HD (HUN)"}
    - {id: 86, cat: TV/SD, desc: "Sorozat - XviD (ENG)"}
    - {id: 90, cat: TV/SD, desc: "Sorozat - XviD (HUN)"}
    - {id: 99, cat: XXX/DVD, desc: "XXX - DVD"}
    - {id: 98, cat: XXX/x264, desc: "XXX - HD"}
    - {id: 76, cat: XXX/ImageSet, desc: "XXX - Képek"}
    - {id: 69, cat: XXX/XviD, desc: "XXX - XviD"}
    - {id: 70, cat: Audio, desc: "Zene - HUN"}
    - {id: 71, cat: Audio, desc: "Zene - Külföld"}

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

settings:
  - name: cookie
    type: text
    label: Cookie
  - name: info
    type: info
    label: How to get the Cookie
    default: "<ol><li>Login to this tracker with your browser</li><li>Open the <b>DevTools</b> panel by pressing <b>F12</b></li><li>Select the <b>Network</b> tab</li><li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)</li><li>Refresh the page by pressing <b>F5</b></li><li>Click on the first row entry</li><li>Select the <b>Headers</b> tab on the Right panel</li><li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</li></ol>"
  - name: useragent
    type: text
    label: User-Agent
  - name: info_useragent
    type: info
    label: How to get the User-Agent
    default: "<ol><li>From the same place you fetched the cookie,</li><li>Find <b>'user-agent:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole user-agent string <i>(everything after 'user-agent: ')</i> and <b>Paste</b> here.</li></ol>"
  - name: freeleech
    type: checkbox
    label: Search FreeLeech only
    default: false
  - name: sort
    type: select
    label: Sort requested from site
    default: 0
    options:
      0: added
      1: name
      5: size
      7: seeders
  - name: type
    type: select
    label: Order requested from site
    default: desc
    options:
      desc: desc
      asc: asc
  - name: info_tpp
    type: info
    label: Results Per Page
    default: For best results, change the <b>Torrentek száma egy oldalon</b> setting to <b>100</b> on your account profile.

login:
  method: cookie
  inputs:
    cookie: "{{ .Config.cookie }}"
  test:
    path: index.php
    selector: a[href^="/logout"]

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

search:
  headers:
    User-Agent: ["{{ .Config.useragent }}"]
  paths:
    - path: letoltes.php
  inputs:
    cat: 0
    search: "{{ .Keywords }}"
    # 0 active, 1 active+idead, 2 dead, 3 free, 4 x2, 5 waiting for seed, 6 my torrents, 7 requested
    incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
    sort: "{{ .Config.sort }}"
    type: "{{ .Config.type }}"
    # does not support imdbid searches
    # can support genre, but you need the id. &mufaj[]=14 for Horror

  rows:
    selector: table > tbody#linkhatter > tr:nth-child(1)

  fields:
    category:
      selector: a[href^="letoltes.php?cat="]
      attribute: href
      filters:
        - name: querystring
          args: cat
    title:
      selector: td:nth-child(3) > a[href^="torrent_adatok.php"]
      attribute: title
    details:
      selector: a[href^="torrent_adatok.php?id="]
      attribute: href
    download:
      selector: a[href^="torrent_adatok.php?id="]
      attribute: href
    title_hungarian:
      selector: td:nth-child(3) font[color="gray"]
      filters:
        - name: replace
          args: ["| ", ""]
    date:
      selector: td:nth-child(5) nobr
      remove: font
      filters:
        - name: replace
          args: ["\xA0", ""]
        - name: append
          args: " +01:00" # CET
        - name: dateparse
          args: "yyyy-MM-ddHH:mm:ss zzz"
    poster:
      selector: a[onmouseover]
      attribute: onmouseover
      filters:
        - name: regexp
          args: "src=(.*?) border"
    size:
      selector: td:nth-last-child(5)
    grabs:
      selector: td:nth-last-child(4)
    seeders:
      selector: td:nth-last-child(3) font
    leechers:
      selector: td:nth-last-child(2)
    downloadvolumefactor:
      case:
        "img[src=\"pic/orokos.gif\"]": 0
        "img[src=\"images/ellenorzes/ingyenes.gif\"]": 0
        "*": 1
    uploadvolumefactor:
      case:
        "font[color=\"#01DF01\"]": 2
        "*": 1
    genre:
      selector: td:nth-child(3)
      remove: a, font
      filters:
        - name: replace
          args: ["/xA", ""]
    description:
      text: "{{ .Result.title_hungarian }}{{ if and .Result.title_hungarian .Result.genre }}<br>{{ else }}{{ end }}{{ .Result.genre }}"
    minimumratio:
      text: 0.5
    minimumseedtime:
      # 24 hours (as seconds = 24 x 60 x 60)
      text: 86400
# engine n/a
