---
id: devil-torrents
name: Devil-Torrents
description: "Devil-Torrents is a POLISH Semi-Private Torrent Tracker for MOVIES / TV / GENERAL"
language: pl-PL
type: semi-private
encoding: UTF-8
links:
  - https://devil-torrents.pl/

caps:
  categorymappings:
    - {id: 1, cat: Movies/SD, desc: "Filmy XviD/DivX"}
    - {id: 748, cat: Movies/UHD, desc: "Filmy 4K"}
    - {id: 4, cat: Movies/BluRay, desc: "Filmy Blu-Ray/HD"}
    - {id: 642, cat: Movies/HD, desc: "Filmy x264/h264"}
    - {id: 596, cat: Movies/HD, desc: "Filmy x265/h265"}
    - {id: 3, cat: Movies/DVD, desc: "Filmy DVD"}
    - {id: 5, cat: Movies/3D, desc: "Filmy 3D"}
    - {id: 7, cat: TV, desc: "TV/Seriale"}
    - {id: 702, cat: Movies/SD, desc: "TS/CAM"}
    - {id: 8, cat: XXX, desc: "Erotyka"}
    - {id: 10, cat: Audio, desc: "Muzyka"}
    - {id: 11, cat: PC, desc: "Programy"}
    - {id: 12, cat: PC/Mobile-Other, desc: "GSM/PDA"}
    - {id: 13, cat: Console, desc: "Konsole"}
    - {id: 14, cat: PC/Games, desc: "Gry PC"}
    - {id: 15, cat: Movies, desc: "Dla Dzieci"}
    - {id: 16, cat: Books, desc: "Książki"}
    - {id: 525, cat: PC/Mac, desc: "Mac"}
    - {id: 18, cat: PC, desc: "Linux"}
    - {id: 19, cat: TV/Sport, desc: "Sport"}
    - {id: 699, cat: TV/Anime, desc: "Anime"}
    - {id: 21, cat: Other, desc: "Inne"}

  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: multilang
    type: checkbox
    label: Replace MULTi by another language in release name
    default: false
  - name: multilanguage
    type: select
    label: Replace MULTi by this language
    default: POLISH
    options:
      POLISH: POLISH
      MULTi POLISH: MULTi POLISH
  - name: info_flaresolverr
    type: info_flaresolverr
  - name: info_limit
    type: info
    label: "Download Limit"
    default: "If your downloads fail then access the site with your browser and check your messages, you've likely exceeded your limit."

login:
  path: logowanie
  method: form
  form: form[action="takelogin.php"]
  captcha:
    type: image
    selector: img[src^="img.php?size=3"]
    input: vImageCodP
  inputs:
    username: "{{ .Config.username }}"
    password: "{{ .Config.password }}"
    returnto: ""
  error:
    - selector: div#center-side:contains("Logowanie nie")
  test:
    path: /
    selector: a[href$="/logout.php"]

search:
  # https://devil-torrents.pl/szukaj.php?search=2026&typ=torrent
  paths:
    - path: szukaj.php
  inputs:
    typ: torrent
    search: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
    search_in_descr: "{{ if .Keywords }}{{ else }}1{{ end }}"

  rows:
    selector: div.search-torrent-card

  fields:
    category:
      selector: span.search-cat-badge
      case:
        "span.search-cat-badge:contains(\"Filmy XviD/DivX\")": 1
        "span.search-cat-badge:contains(\"Filmy 4K\")": 748
        "span.search-cat-badge:contains(\"Filmy Blu-Ray/HD\")": 4
        "span.search-cat-badge:contains(\"Filmy x264/h264\")": 642
        "span.search-cat-badge:contains(\"Filmy x265/h265\")": 596
        "span.search-cat-badge:contains(\"Filmy DVD\")": 3
        "span.search-cat-badge:contains(\"Filmy 3D\")": 5
        "span.search-cat-badge:contains(\"TV/Seriale\")": 7
        "span.search-cat-badge:contains(\"TS/CAM\")": 702
        "span.search-cat-badge:contains(\"Erotyka\")": 8
        "span.search-cat-badge:contains(\"Muzyka\")": 10
        "span.search-cat-badge:contains(\"Programy\")": 11
        "span.search-cat-badge:contains(\"GSM/PDA\")": 12
        "span.search-cat-badge:contains(\"Konsole\")": 13
        "span.search-cat-badge:contains(\"Gry PC\")": 14
        "span.search-cat-badge:contains(\"Dla Dzieci\")": 15
        "span.search-cat-badge:contains(\"Książki\")": 16
        "span.search-cat-badge:contains(\"Mac\")": 525
        "span.search-cat-badge:contains(\"Linux\")": 18
        "span.search-cat-badge:contains(\"Sport\")": 19
        "span.search-cat-badge:contains(\"Anime\")": 699
        "span.search-cat-badge:contains(\"Inne\")": 21
    title_phase1:
      selector: a[href^="/torrent/"]
      attribute: title
    title_multilang:
      selector: a[href^="/torrent/"]
      attribute: title
      filters:
        - name: re_replace
          args: ["(?i)\\b(MULTI(?!.*(?:POLISH|ENGLISH|\\bPL\\b)))\\b", "{{ .Config.multilanguage }}"]
        - name: re_replace
          args: ["(?i)\\b(pl)\\b", "POLISH"]
    title:
      text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase1 }}{{ end }}"
    details:
      selector: a[href^="/torrent/"]
      attribute: href
    download:
      selector: a[href^="download/"]
      attribute: href
    poster:
      selector: img.search-poster
      attribute: data-src
    date:
      selector: div.search-date-badge
      filters:
        - name: regexp
          args: (\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})
        - name: append
          args: " +01:00" # CET
        - name: dateparse
          args: "yyyy-MM-dd HH:mm:ss zzz"
    size:
      selector: span.search-size-badge
      filters:
        - name: regexp
          args: (\d{1,4}\.\d{2}\s+?[T|G|M|k]B)
    seeders:
      selector: span[id^="seed_"]
    leechers:
      selector: span[id^="peer_"]
    grabs:
      selector: span:contains("Pobrano")
      filters:
        - name: regexp
          args: Pobrano:(\d{1,4})
    downloadvolumefactor:
      text: 0
    uploadvolumefactor:
      text: 1
# engine n/a
