Jackett/src/Jackett.Common/Definitions/btdb.yml

112 lines
3.0 KiB
YAML

---
id: btdb
name: BTDB
description: "BTDB is a Public BitTorrent DHT search engine."
language: en-us
type: public
encoding: UTF-8
followredirect: true
links:
- https://btdb.eu/
- https://btdb.unblockit.lat/
legacylinks:
- https://btdb.to/
- https://btdb.unblocked.app/
- https://btdb.unblockit.pro/
- https://btdb.unblockit.one/
- https://btdb.black-mirror.xyz/
- https://btdb.unblocked.casa/
- https://btdb.proxyportal.fun/
- https://btdb.uk-unblock.xyz/
- https://btdb.ind-unblock.xyz/
- https://btdb.io/ # ERR_NAME_NOT_RESOLVED
- https://btdb.unblockit.me/
- https://btdb.unblockit.pw/
- https://btdb.unblockit.id/
- https://btdb.unblockit.win/
- https://btdb.unblocked.bar/
- https://btdb.proxyportal.pw/
- https://btdb.uk-unblock.pro/
- https://btdb.unblockit.top/
caps:
categorymappings:
- {id: 1, cat: Other, desc: "Other"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
settings:
- name: info
type: info
label: Category for Sonarr and Radarr
default: BTDB does not use categories. In your Sonarr or Radarr Torznab Indexer settings, set the category to 100001.
- name: sort
type: select
label: Sort requested from site
default: time
options:
time: created
length: size
seeders: seeders
search:
paths:
- path: "{{ if .Keywords }}search/{{ .Keywords }}/{{else}}recent{{end}}?sort={{ .Config.sort }}"
- path: "{{ if .Keywords }}search/{{ .Keywords }}/{{else}}recent{{end}}?sort={{ .Config.sort }}&page=2"
- path: "{{ if .Keywords }}search/{{ .Keywords }}/{{else}}recent{{end}}?sort={{ .Config.sort }}&page=3"
- path: "{{ if .Keywords }}search/{{ .Keywords }}/{{else}}recent{{end}}?sort={{ .Config.sort }}&page=4"
- path: "{{ if .Keywords }}search/{{ .Keywords }}/{{else}}recent{{end}}?sort={{ .Config.sort }}&page=5"
rows:
selector: div.media
fields:
category:
text: 1
title:
selector: a[href*="/torrent/"]
attribute: title
details:
selector: a[href*="/torrent/"]
attribute: href
download:
# download can be missing despite icon being present. Fortunately the magnet is always there
selector: a[href$=".torrent"]
attribute: href
optional: true
magnet:
selector: a[href^="magnet:?xt="]
attribute: href
banner:
selector: a.img-thumbnail img
attribute: src
filters:
- name: replace
args: ["https://btdb.io/assets/img/placeholder.png", ""]
size:
selector: small:nth-of-type(1) strong
files:
selector: small:nth-of-type(2) strong
seeders:
selector: small:nth-of-type(3) strong
filters:
- name: replace
args: [",", ""]
leechers:
selector: small:nth-of-type(4) strong
filters:
- name: replace
args: [",", ""]
date:
selector: small:nth-of-type(5) strong
filters:
- name: timeago
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a