---
id: dragonworldreloaded
name: Dragonworld Reloaded
description: "Dragonworld Reloaded is a GERMAN Private Torrent Tracker for MOVIES / TV / GENERAL"
language: de-DE
type: private
encoding: UTF-8
links:
  - https://dragonworld-reloaded.net/

caps:
  categorymappings:
    # Kino
    - {id: 118, cat: Movies/HD, desc: "Kino - HD"}
    - {id: 141, cat: Movies/UHD, desc: "Kino - UHD"}
    - {id: 4, cat: Movies/SD, desc: "Kino - SD"}
    # Movies
    - {id: 19, cat: Movies/HD, desc: "Movies - HD"}
    - {id: 26, cat: Movies/UHD, desc: "Movies - UHD"}
    - {id: 18, cat: Movies/SD, desc: "Movies - SD"}
    - {id: 139, cat: Movies/3D, desc: "Movies - 3D"}
    - {id: 2, cat: Movies, desc: "Movies - Pack SD/HD"}
    # Serien
    - {id: 41, cat: TV/HD, desc: "Serien - HD"}
    - {id: 143, cat: TV/UHD, desc: "Serien - UHD"}
    - {id: 40, cat: TV/SD, desc: "Serien - SD"}
    - {id: 80, cat: TV/HD, desc: "Serien - Pack HD"}
    - {id: 42, cat: TV/SD, desc: "Serien - Pack SD"}
    # Musik
    - {id: 119, cat: Audio, desc: "Musik - Album"}
    - {id: 148, cat: Audio, desc: "Musik - Charts"}
    - {id: 5, cat: Audio, desc: "Musik - Sampler"}
    - {id: 92, cat: Audio, desc: "Musik - Discography"}
    - {id: 146, cat: Audio, desc: "Musik - Mixe"}
    - {id: 142, cat: Audio/Lossless, desc: "Musik - Flac"}
    - {id: 136, cat: Audio/Video, desc: "Musik - Videos"}
    # Doku
    - {id: 38, cat: TV/Documentary, desc: "Doku - HD"}
    - {id: 37, cat: TV/Documentary, desc: "Doku - SD"}
    - {id: 144, cat: TV/Documentary, desc: "Doku - Pack SD/HD"}
    # Empfohlene
    - {id: 150, cat: Other, desc: "Empfohlene - Torrents"}
    # Games
    - {id: 16, cat: PC/Games, desc: "Games - PC"}
    - {id: 14, cat: Console/Other, desc: "Games - Wimmelbild"}
    - {id: 140, cat: Console, desc: "Games - Konsole"}
    - {id: 145, cat: Console/Other, desc: "Games - Sonstige"}
    # Appz
    - {id: 30, cat: PC/0day, desc: "Appz - Windows"}
    - {id: 106, cat: PC/Mobile-Android, desc: "Appz - Android"}
    - {id: 138, cat: PC/0day, desc: "Appz - Sonstige"}
    # Sport
    - {id: 50, cat: TV/Sport, desc: "Sport - HD"}
    - {id: 43, cat: TV/Sport, desc: "Sport - SD"}
    # Sonstiges
    - {id: 137, cat: Books/Comics, desc: "Sonstiges - Anime"}
    - {id: 34, cat: Books/EBook, desc: "Sonstiges - E-Books"}
    - {id: 35, cat: Audio/Audiobook, desc: "Sonstiges - Audiobook"}
    - {id: 147, cat: Other, desc: "Sonstiges - Sonstige"}
    # XXX
    - {id: 47, cat: XXX, desc: "XXX - SD/HD"}
    - {id: 49, cat: XXX/Other, desc: "XXX - Sonstiges"}

  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: pin
    type: text
    label: Pin
  - name: freeleech
    type: checkbox
    label: Filter freeleech only
    default: false
  - 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

login:
  path: login.php
  method: form
  form: form[action="/login.php"]
  cookies: ["JAVA=OK"] # avoid jscheck redirect
  captcha:
    type: image
    selector: img[src^="cap/captcha_math.php"]
    input: stringCaptcha
  inputs:
    username: "{{ .Config.username }}"
    password: "{{ .Config.password }}"
    pin: "{{ .Config.pin }}"
    loggiin: "einloggen"
  error:
    - selector: div#login_error
  test:
    path: selection.php

download:
  before:
    path: ajax_det_poll.php
    method: post
    inputs:
      set_thanks: thanks
      det_id: "{{ .DownloadUri.Query.torrent }}"
      ajax: yes

search:
  paths:
    - path: selection.php
  inputs:
    $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
    search: "{{ .Keywords }}"
    # 0 name, 1 descr, 2 both
    blah: 0
    orderby: "{{ .Config.sort }}"
    sort: "{{ .Config.type }}"

  rows:
    selector: "div.selection_wrap{{ if .Config.freeleech }}:root:has(div.onlyup){{ else }}{{ end }}"

  fields:
    cat_p1:
      selector: div.kat_cat_pic_name
    cat_p2:
      selector: div.kat_cat_pic_name_b
    categorydesc:
      text: "{{ .Result.cat_p1 }} - {{ .Result.cat_p2 }}"
    title:
      selector: a.selection_a
    details:
      selector: a.selection_a
      attribute: href
    download:
      selector: a.selection_a
      attribute: href
      filters:
        - name: replace
          args: ["details.php?id=", "download.php?torrent="]
    poster:
      selector: div[id^="details"] img
      attribute: src
    size:
      selector: div.selection_unter_ad
    grabs:
      selector: div.selection_unter_ae
    seeders:
      selector: div.selection_unter_aa
    leechers:
      selector: div.selection_unter_aaa
    date_day:
      # Heute 13:30:04
      # Gestern 09:10:10
      selector: div.selection_unter_ab:not(:contains("."))
      optional: true
      filters:
        - name: replace
          args: ["Heute", "Today"]
        - name: replace
          args: ["Gestern", "Yesterday"]
    date_year:
      # 30.02.2018 um 23:12:50
      selector: div.selection_unter_ab:contains(".")
      optional: true
      filters:
        - name: replace
          args: [" um", ""]
        - name: append
          args: " +01:00" # CET
        - name: dateparse
          args: "02.01.2006 15:04:05 -07:00"
    date:
      text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
    description:
      selector: selection_unter_af
    downloadvolumefactor:
      case:
        ":root:has(div.onlyup)": 0
        "*": 1
    uploadvolumefactor:
      text: 1
    minimumratio:
      text: 1.0
    minimumseedtime:
      # 12 hours (as seconds = 12 x 60 x 60)
      text: 43200
# 3xT
