2020-04-15 05:07:33 +00:00
---
2020-05-11 19:59:28 +00:00
id : torrentdb
2020-05-10 20:05:19 +00:00
name : TorrentDB
2021-03-29 18:23:46 +00:00
description : "TorrentDB - Private site for MOVIES / TV / GENERAL"
2021-09-07 23:09:51 +00:00
language : en-US
2020-05-10 20:05:19 +00:00
type : private
encoding : UTF-8
links :
- https://torrentdb.net/
2020-04-15 05:07:33 +00:00
2020-05-10 20:05:19 +00:00
caps :
categorymappings :
- {id: 1, cat: Movies, desc : "Movies" }
- {id: 2, cat: TV, desc : "TV" }
- {id: 3, cat: Audio, desc : "Music" }
- {id: 4, cat: PC/Games, desc : "Games" }
- {id: 5, cat: Other, desc : "Miscellaneous" }
- {id: 6, cat: XXX, desc : "XXX" }
2020-04-15 05:07:33 +00:00
2020-05-10 20:05:19 +00:00
modes :
2020-10-19 03:56:16 +00:00
search : [ q]
2021-08-13 21:29:41 +00:00
tv-search : [ q, season, ep] # see #12156 for why imdbid and tvdbid are not defined.
2020-11-13 20:13:41 +00:00
movie-search : [ q, imdbid, tmdbid]
2020-05-10 20:05:19 +00:00
music-search : [ q]
2020-04-15 05:07:33 +00:00
2020-05-10 20:05:19 +00:00
settings :
- name : username
type : text
label : Username
- name : password
type : password
label : Password
2020-09-15 04:32:21 +00:00
- name : freeleech
type : checkbox
label : Search freeleech only
default : false
2020-05-10 20:05:19 +00:00
- name : sort
type : select
label : Sort requested from site
2020-10-22 20:52:44 +00:00
default : created_at
2020-05-10 20:05:19 +00:00
options :
2020-10-22 20:52:44 +00:00
created_at : created
seeders : seeders
size : size
name : title
2020-05-10 20:05:19 +00:00
- name : type
type : select
label : Order requested from site
2020-10-22 20:52:44 +00:00
default : desc
2020-05-10 20:05:19 +00:00
options :
2020-10-22 20:52:44 +00:00
desc : desc
asc : asc
2020-04-15 05:07:33 +00:00
2020-05-10 20:05:19 +00:00
login :
path : login
method : form
form : form[action$="/login"]
inputs :
username : "{{ .Config.username }}"
password : "{{ .Config.password }}"
remember : on
selectorinputs :
_token :
selector : input[name="_token"]
attribute : value
error :
- selector : form[action$="/login"] .text-red
2020-04-15 05:07:33 +00:00
# test:
# path: /
# selector: a[href$="/logout"]
2020-05-10 20:05:19 +00:00
search :
paths :
2020-09-15 04:32:21 +00:00
# https://torrentdb.net/filter/torrents?search=&tags=&freeleech=1&sorting=created_at&direction=desc&qty=25
2020-10-22 21:17:54 +00:00
- path : filter/torrents
inputs :
2020-10-22 20:52:44 +00:00
$raw : "{{ range .Categories }}categories[]={{.}}&{{end}}{{ if .Config.freeleech }}freeleech=1&{{ else }}{{ end }}"
2020-11-13 20:13:41 +00:00
# note: dashboard only supports imdbid (tt12345678). Since tvdbid and tmdbid are just numbers the dashboard sends them as keywords
2022-08-05 03:53:41 +00:00
# which will fail title matching because we need the andmatch to filter the web sites title mismatches (it searches in descriptions too)
2020-11-13 20:13:41 +00:00
search : "{{ if or .Query.IMDBID .Query.TVDBID .Query.TMDBID }}{{ or .Query.IMDBIDShort .Query.TVDBID .Query.TMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
2020-10-22 20:52:44 +00:00
tags : ""
sorting : "{{ .Config.sort }}"
direction : "{{ .Config.type }}"
qty : 100
2022-08-05 03:53:41 +00:00
# the tags search in combo with search keywords does not yield expected results.
2020-04-15 05:07:33 +00:00
2022-02-18 16:15:40 +00:00
keywordsfilters :
- name : re_replace
args : [ "\\." , " " ]
2020-05-10 20:05:19 +00:00
rows :
selector : table > tbody > tr
2020-09-15 04:32:21 +00:00
filters :
- name : andmatch
2020-04-15 05:07:33 +00:00
2020-05-10 20:05:19 +00:00
fields :
category :
selector : a[href*="/torrents/category/"]
attribute : href
filters :
- name : regexp
args : "/category/(\\d+)\\."
title :
selector : a[href*="/torrent/"]
details :
selector : a[href*="/torrent/"]
attribute : href
download :
selector : a[href*="/download/"]
attribute : href
2022-08-05 03:53:41 +00:00
genre :
selector : td:nth-child(2)
filters :
2022-08-06 00:36:02 +00:00
- name : re_replace
args : [ "(?i)(Science Fiction)" , "Science_Fiction" ]
2022-08-05 03:53:41 +00:00
- name : validate
2022-08-06 00:36:02 +00:00
args : "Action, Adventure, Animation, Biography, Comedy, Crime, Documentary, Drama, Family, Fantasy, Game-Show, History, Horror, Music, Musical, Mystery, News, Reality-TV, Romance, Science_Fiction, Sitcom, Sport, Talk-Show, Thriller, War, Western"
2022-08-05 03:53:41 +00:00
description :
text : "{{ .Result.genre }}"
2020-05-10 20:05:19 +00:00
date :
selector : td:nth-child(2) small
filters :
- name : regexp
args : "(.+?)\\s*by"
- name : timeago
size :
selector : td:nth-child(5)
grabs :
selector : td:nth-child(6)
seeders :
selector : td:nth-child(9)
leechers :
selector : td:nth-child(10)
2021-10-24 06:51:41 +00:00
imdbid :
2020-05-25 03:17:44 +00:00
selector : a[href*="imdb.com/title/tt"]
2020-05-10 20:05:19 +00:00
attribute : href
2020-11-13 20:13:41 +00:00
tmdbid :
2022-07-01 07:48:00 +00:00
selector : a[href*="themoviedb.org/movie/"], a[href*="themoviedb.org/tv/"]
2020-11-13 20:13:41 +00:00
attribute : href
2020-05-10 20:05:19 +00:00
downloadvolumefactor :
case :
i.fa-star : 0 # Freeleech
i.fa-certificate : 0 # Featured
"*": 1
uploadvolumefactor :
case :
i.fa-certificate : 2 # Featured
i.fa-gem : 2 # Double Upload
"*": 1
2020-09-15 04:32:21 +00:00
minimumratio :
text : 1.0
minimumseedtime :
# 7 days (as seconds = 7 x 24 x 60 x 60)
text : 604800
2020-04-15 05:07:33 +00:00
# UNIT3D