1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-27 11:53:24 +01:00
Files
Indexers/definitions/v3/danishbytes-api.yml
bakerboy448 e1ebed3d07 jackett indexers as of 9923086277079e81b56c697ba7cafed708e67cfe
jackett indexers as of 1e136624a7e258ba0c3e1f2154e197fe9f39fcfb

jackett indexers as of aae496536f7fe56c49111a7359d8315935332ebd

jackett indexers as of c804cb5e668231a28ebebf6c12fc73cc84192c73

jackett indexers as of 9b54ab60fb59acb9d8504e61c4f9e0b8ee6cfb82

jackett indexers as of 6365de115b2ad616edcacab793267ece658569a1

jackett indexers as of 3afeafba136f8713711bb3c529074710d6bdc90e
2022-03-05 09:24:08 -06:00

137 lines
3.6 KiB
YAML

---
id: danishbytes-api
name: DanishBytes (API)
description: "DanishBytes is a Private Danish Tracker"
language: en-US
type: private
encoding: UTF-8
links:
- https://danishbytes.club/
- https://danishbytes2.org/
- https://dbytes.org/
- https://danishbytes.art/
legacylinks:
- https://danishbytes.org/
caps:
categorymappings:
- {id: 1, cat: Movies, desc: "Movies"}
- {id: 2, cat: TV, desc: "TV"}
- {id: 3, cat: Audio, desc: "Sound"}
- {id: 4, cat: PC/Games, desc: "Games"}
- {id: 5, cat: PC/0day, desc: "Appz"}
- {id: 8, cat: Books, desc: "Bookz"}
modes:
search: [q]
tv-search: [q, season, ep, imdbid, tvdbid]
movie-search: [q, imdbid, tmdbid]
music-search: [q]
book-search: [q]
settings:
- name: apikey
type: text
label: APIKey
- name: info_apikey
type: info
label: About your API key
default: "Find or Generate a new API Token by accessing your <a href=\"https://danishbytes.club/\" target =_blank>DanishBytes</a> account <i>My Security</i> page and clicking on the <b>API Token</b> tab."
- name: rsskey
type: text
label: RSSKey
- name: info_rsskey
type: info
label: About your RSS key
default: "Find or Generate a new RSS key by accessing your <a href=\"https://danishbytes.club/\" target =_blank>DanishBytes</a> account <i>My Security</i> page and clicking on the <b>RSS Key (RID)</b> tab."
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
default: created_at
options:
created_at: created
seeders: seeders
size: size
name: title
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
text: "The API key was not accepted by {{ .Config.sitelink }}."
search:
paths:
- path: "/api/torrents/v2/filter?api_token={{ .Config.apikey }}&search={{ .Keywords }}{{ if .Query.IMDBIDShort }}&imdb={{ .Query.IMDBIDShort }}{{ else }}{{ end }}{{ if .Query.TMDBID }}&tmdb={{ .Query.TMDBID }}{{ else }}{{ end }}{{ if .Query.TVDBID }}&tvdb={{ .Query.TVDBID }}{{ else }}{{ end }}{{ range .Categories }}&categories[]={{.}}{{end}}{{ if .Config.freeleech }}&freeleech=1{{ else }}{{ end }}&sorting={{ .Config.sort }}&direction={{ .Config.type }}&qty=100&page=1"
response:
type: json
rows:
selector: torrents
count:
selector: $.resultsCount
fields:
id:
selector: .id
category:
selector: category_id
title:
selector: name
details:
text: "{{ .Config.sitelink }}torrents/{{ .Result.id }}"
download:
text: "{{ .Config.sitelink }}torrent/download/{{ .Result.id }}.{{ .Config.rsskey }}"
poster:
selector: poster_image
imdbid:
selector: imdb
tmdbid:
selector: tmdb
tvdbid:
selector: tvdb
seeders:
selector: seeders
leechers:
selector: leechers
grabs:
selector: times_completed
date:
# 2022-02-28T19:09:44.000000Z
selector: created_at
size:
selector: size
downloadvolumefactor:
# api returns 0=false, 1=true
selector: free
case:
0: 1 # not free
1: 0 # freeleech
uploadvolumefactor:
# api returns 0=false, 1=true
selector: doubleup
case:
0: 1 # normal
1: 2 # double
minimumratio:
text: 1.0
minimumseedtime:
# 2 day (as seconds = 2 x 24 x 60 x 60)
text: 172800
# json DBy v0.95