---
id: ebookparadijs
name: EbookParadijs
description: "EbookParadijs is a DUTCH Private Tracker for EBOOKS"
language: nl-NL
type: private
encoding: UTF-8
links:
  - https://www.ebookparadijs.org/

caps:
  categorymappings:
    - {id: 2, cat: Books/EBook, desc: "Roman"}
    - {id: 3, cat: Books/EBook, desc: "Thriller"}
    - {id: 4, cat: Books/EBook, desc: "Diverse"}
    - {id: 7, cat: Books/EBook, desc: "Jeugd"}
    - {id: 8, cat: Books/EBook, desc: "Oorlog"}
    - {id: 9, cat: Books/EBook, desc: "Luisterboeken"}
    - {id: 10, cat: Books/EBook, desc: "Stripboeken"}
    - {id: 11, cat: Books/EBook, desc: "Crime"}
    - {id: 13, cat: Books/EBook, desc: "Detective"}
    - {id: 15, cat: Books/EBook, desc: "Erothiek"}
    - {id: 16, cat: Books/EBook, desc: "Tijdschriften"}
    - {id: 17, cat: Books/EBook, desc: "Hobby"}
    - {id: 19, cat: Books/EBook, desc: "Medisch"}
    - {id: 21, cat: Books/EBook, desc: "Sport"}
    - {id: 50, cat: Books/EBook, desc: "Kookboeken"}
    - {id: 51, cat: Books/EBook, desc: "Fantasy"}
    - {id: 52, cat: Books/EBook, desc: "Kerst"}
    - {id: 53, cat: Books/EBook, desc: "Waargebeurd"}
    - {id: 56, cat: Books/EBook, desc: "Engels"}
    - {id: 57, cat: Books/EBook, desc: "Maatschappij"}
    - {id: 58, cat: Books/EBook, desc: "Biografie"}
    - {id: 61, cat: Books/EBook, desc: "Geschiedenis"}
    - {id: 60, cat: Books/EBook, desc: "Sci-Fi"}
    - {id: 64, cat: Books/EBook, desc: "Literatuur"}
    - {id: 65, cat: Books/EBook, desc: "Non-Fiction"}
    - {id: 66, cat: Books/EBook, desc: "Bladmuziek"}

  modes:
    search: [q]
    book-search: [q]

settings:
  - name: cookie
    type: text
    label: Cookie
  - name: info_cookie
    type: info
    label: How to get the Cookie
    default: "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)<li>Refresh the page by pressing <b>F5</b><li>Click on the first row entry<li>Select the <b>Headers</b> tab on the Right panel<li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
  - name: freeleech
    type: checkbox
    label: Filter freeleech only
    default: false
  - name: thankyou
    type: text
    label: Thank You Comment
  - name: info_comment
    type: info
    label: Thank you comment
    default: This site requires you to leave a Thank You comment before you can download. Enter your personalised comment above.

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

download:
  before:
    # https://www.ebookparadijs.org/comment.php?action=add&tid=23079
    path: comment.php
    method: post
    inputs:
      action: add
      tid: "{{ .DownloadUri.Query.id }}"
      text: "{{ .Config.thankyou }}"
      submit: Opslaan
  selector: a[href^="download.php?id="]
  attribute: href

search:
  paths:
    - path: browse.php
  inputs:
    $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
    search: "{{ .Keywords }}"
    incldead: 1

  rows:
    selector: "table.mainouter{{ if .Config.freeleech }}:has(img[src=\"pic/freedlfsu.gif\"]){{ else }}{{ end }}"
    filters:
      - name: andmatch

  fields:
    category:
      selector: a[href^="browse.php?cat="]
      attribute: href
      filters:
        - name: querystring
          args: cat
    poster:
      selector: img[src*="/covers/"]
      attribute: src
    title:
      selector: a[href^="details.php?id="]
    details:
      selector: a[href^="details.php?id="]
      attribute: href
    download:
      selector: a[href^="details.php?id="]
      attribute: href
    size:
      selector: td:nth-child(4) table tr td:nth-child(2)
      filters:
        - name: regexp
          args: "(.+?) in"
    files:
      selector: td:nth-child(4) table tr td:nth-child(2)
      filters:
        - name: regexp
          args: "in (\\d+) bestan"
    grabs:
      selector: td:nth-child(4) table tr:nth-child(2) td:nth-child(1)
      filters:
        - name: regexp
          args: (\d+)
    date:
      selector: td:nth-child(4) table tr:nth-child(2) td:last-child
      filters:
        - name: replace
          args: ["januari", "January"]
        - name: replace
          args: ["februari", "February"]
        - name: replace
          args: ["maart", "March"]
        - name: replace
          args: ["april", "April"]
        - name: replace
          args: ["mei", "May"]
        - name: replace
          args: ["juni", "June"]
        - name: replace
          args: ["juli", "July"]
        - name: replace
          args: ["augustus", "August"]
        - name: replace
          args: ["september", "September"]
        - name: replace
          args: ["oktober", "October"]
        - name: replace
          args: ["november", "November"]
        - name: replace
          args: ["december", "December"]
        - name: re_replace
          args: ["\\s*om\\s*", " "]
        - name: append
          args: " +01:00" # CET
        - name: dateparse
          args: "2 January 2006 15:04:05 -07:00"
    seeders:
      text: 0
    seeders:
      optional: true
      selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5)  font b
    leechers:
      text: 0
    leechers:
      optional: true
      selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) font font b
    downloadvolumefactor:
      case:
        img[src="pic/freedlfsu.gif"]: 0
        "*": 1
    uploadvolumefactor:
      text: 1
# minimumratio: ratioless site, uses credit points instead.
# engine n/a
