2022-03-01 07:50:57 +00:00
---
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]
2022-06-12 07:58:12 +00:00
tv-search : [ q, season, ep, imdbid, tvdbid, tmdbid]
2022-03-01 07:50:57 +00:00
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
2023-04-28 18:45:59 +00:00
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."
2022-03-01 07:50:57 +00:00
- name : rsskey
type : text
label : RSSKey
- name : info_rsskey
type : info
label : About your RSS key
2023-04-28 18:45:59 +00:00
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."
2022-03-01 18:49:11 +00:00
- name : freeleech
type : checkbox
label : Search freeleech only
default : false
2022-03-01 19:26:37 +00:00
- 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
2024-02-28 01:41:59 +00:00
- name : info_activity
type : info
label : Account Inactivity
default : "If you have not logged in for 90 days, the user is automatically deleted."
2022-03-01 07:50:57 +00:00
login :
path : /api/torrents
method : get
error :
- selector : a[href*="/login"]
message :
text : "The API key was not accepted by {{ .Config.sitelink }}."
search :
paths :
2023-03-20 22:43:24 +00:00
- path : api/torrents/v2/filter
2022-03-01 07:50:57 +00:00
response :
type : json
2023-06-06 23:48:56 +00:00
headers :
Authorization : [ "Bearer {{ .Config.apikey }}" ]
2023-03-20 22:43:24 +00:00
inputs :
$raw : "{{ range .Categories }}&categories[]={{.}}{{end}}"
search : "{{ .Keywords }}"
imdb : "{{ .Query.IMDBIDShort }}"
tmdb : "{{ .Query.TMDBID }}"
tvdb : "{{ .Query.TVDBID }}"
freeleech : "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
sorting : "{{ .Config.sort }}"
direction : "{{ .Config.type }}"
qty : 100
page : 1
2022-03-01 07:50:57 +00:00
rows :
selector : torrents
count :
selector : $.resultsCount
fields :
2022-07-19 07:18:10 +00:00
_id :
2022-03-01 07:50:57 +00:00
selector : .id
category :
selector : category_id
title :
selector : name
details :
2023-11-08 02:29:30 +00:00
text : "/torrents/{{ .Result._id }}"
2022-03-01 07:50:57 +00:00
download :
2023-11-08 02:29:30 +00:00
text : "/torrent/download/{{ .Result._id }}.{{ .Config.rsskey }}"
2022-06-10 00:48:18 +00:00
infohash :
selector : info_hash
2022-03-01 07:50:57 +00:00
poster :
selector : poster_image
2022-07-29 06:44:45 +00:00
genre :
selector : meta_genres
2023-10-22 03:10:09 +00:00
filters :
- name : re_replace
args : [ "(?i)(Action og eventyr)" , "Action_og_eventyr" ]
- name : re_replace
args : [ "(?i)(Sci-fi og Fantasy)" , "Sci-fi_og_Fantasy" ]
- name : re_replace
args : [ "(?i)(Stand-Up Comedy)" , "Stand-Up_Comedy" ]
- name : replace
args : [ " & " , "_&_" ]
2022-07-29 06:44:45 +00:00
description :
text : "{{ .Result.genre }}"
2022-03-01 07:50:57 +00:00
imdbid :
selector : imdb
tmdbid :
selector : tmdb
tvdbid :
selector : tvdb
seeders :
selector : seeders
leechers :
selector : leechers
grabs :
selector : times_completed
date :
2022-12-12 04:04:44 +00:00
# "created_at": "2021-10-18T00:34:50.000000Z" is returned by Newtonsoft.Json.Linq as 18/10/2021 00:34:50
2022-03-01 07:50:57 +00:00
selector : created_at
2022-12-12 04:04:44 +00:00
filters :
- name : append
args : " +00:00" # GMT
- name : dateparse
2023-02-23 22:28:03 +00:00
args : "MM/dd/yyyy HH:mm:ss zzz"
2022-03-01 07:50:57 +00:00
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
2022-03-30 21:04:41 +00:00
# json DBy v0.96