---
id: zomb
name: ZOMB
description: "ZOMB is a Semi-Private Torrent Tracker for BOOTLEG MUSIC"
language: en-US
type: semi-private
encoding: UTF-8
links:
  - http://zombtracker.the-zomb.com/ # site does not support https ERR_CONNECTION_REFUSED

caps:
  categorymappings:
    - {id: 19, cat: Audio/Lossless, desc: "APE"}
    - {id: 5, cat: Audio/Lossless, desc: "FLAC"}
    - {id: 1, cat: Audio/Lossless, desc: "SHN"}
    - {id: 12, cat: Audio/Video, desc: "MPG"}
    - {id: 6, cat: Audio/Video, desc: "AVI"}
    - {id: 2, cat: Audio/Video, desc: "DVD"}
    - {id: 4, cat: Audio/Other, desc: "MISC"}

  modes:
    search: [q]
    music-search: [q, album, artist]

settings:
  - name: username
    type: text
    label: Username
  - name: password
    type: password
    label: Password
  - name: freeleech
    type: checkbox
    label: Search freeleech only
    default: false
  - name: sort
    type: select
    label: Sort requested from site
    default: added
    options:
      added: created
      seeders: seeders
      size: size
      name: title
  - 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>Torrents per page:</b> setting to <b>100</b> on your account profile.

login:
  path: takelogin.php
  method: post
  inputs:
    username: "{{ .Config.username }}"
    password: "{{ .Config.password }}"
  error:
    - selector: table.main:contains("Login failed!")
  test:
    path: my.php
    selector: a[href="logout.php"]

search:
  paths:
    # http://zombtracker.the-zomb.com/browse-a.php?search=pearl+jam&incldead=1&c2=1
    - path: browse-a.php
  inputs:
    $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
    search: "{{ if or (.Query.Artist) (.Query.Album) }}{{ or (.Query.Artist) (.Query.Album) }}{{ else }}{{ .Keywords }}{{ end }}"
    # 0 active, 1 all, 2 inactive, 3 freeleech, 4 banned
    incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
    sort: "{{ .Config.sort }}"
    d: "{{ .Config.type }}"
  # does not support imdbid searches, does not return imdb link in results

  rows:
    selector: "table[style=\"border: solid #000000 1px;\"] > tbody > tr:has(a[href^=\"takedownload.php?id=\"])"
    filters:
      - name: andmatch

  fields:
    category:
      selector: a[href^="browse-a.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
    download:
      selector: a[href^="takedownload.php?id="]
      attribute: href
    description:
      selector: font.sig
    files:
      selector: td:nth-child(5)
    date:
      selector: td:nth-child(7)
      filters:
        - name: append
          args: " +00:00" # auto adjusted by site account profile
        - name: dateparse
          args: "2006-01-0215:04:05 -07:00"
    size:
      selector: td:nth-child(8)
    grabs:
      selector: td:nth-child(9)
    seeders:
      selector: td:nth-child(10)
    leechers:
      selector: td:nth-child(11)
    downloadvolumefactor:
      case:
        img[src="pic/download3.gif"]: 0
        "*": 1
    uploadvolumefactor:
      text: 1
    minimumratio:
      text: 1.0
# Engine n/a
