183 lines
6.6 KiB
YAML
183 lines
6.6 KiB
YAML
|
---
|
||
|
id: torrentbd
|
||
|
name: TorrentBD
|
||
|
description: "A general Bangladesh tracker"
|
||
|
language: en-US
|
||
|
type: private
|
||
|
encoding: UTF-8
|
||
|
links:
|
||
|
- https://www.torrentbd.net/
|
||
|
legacylinks:
|
||
|
- http://www.torrentbd.com/torrent
|
||
|
- http://www.torrentbd.com/
|
||
|
- https://www.torrentbd.com/
|
||
|
|
||
|
caps:
|
||
|
categorymappings:
|
||
|
# get the cats from https://www.torrentbd.net/feed.php?custom
|
||
|
- {id: 28, cat: TV/Anime, desc: "Anime - All"}
|
||
|
- {id: 65, cat: PC/Mobile-Android, desc: "Apps - Android"}
|
||
|
- {id: 18, cat: PC, desc: "Apps - PC"}
|
||
|
- {id: 19, cat: PC/Mac, desc: "Apps - Mac"}
|
||
|
- {id: 20, cat: PC, desc: "Apps - Linux"}
|
||
|
- {id: 49, cat: TV, desc: "Cartoons - All"}
|
||
|
- {id: 9, cat: TV/Documentary, desc: "Documentaries - All"}
|
||
|
- {id: 36, cat: Books/EBook, desc: "Other - E-Books"}
|
||
|
- {id: 73, cat: Books/Comics, desc: "E-Books - Comics"}
|
||
|
- {id: 77, cat: Books/EBook, desc: "E-Books - Manga"}
|
||
|
- {id: 10, cat: PC/Games, desc: "Games - PC"}
|
||
|
- {id: 60, cat: PC/Games, desc: "Games - Cracks | Patches"}
|
||
|
- {id: 52, cat: PC/Games, desc: "Games - Updates | DLC"}
|
||
|
- {id: 81, cat: PC/Games, desc: "Games - Backup"}
|
||
|
- {id: 43, cat: Console/PS3, desc: "Games - PlayStation"}
|
||
|
- {id: 14, cat: Console/XBox, desc: "Games - Xbox"}
|
||
|
- {id: 17, cat: Console, desc: "Games - Other"}
|
||
|
- {id: 86, cat: Movies/UHD, desc: "Movies - Blu-Ray Lossless 4K"}
|
||
|
- {id: 76, cat: Movies/BluRay, desc: "Movies - Blu-Ray Lossless 1080p"}
|
||
|
- {id: 80, cat: Movies/UHD, desc: "Movies - Blu-Ray 4K"}
|
||
|
- {id: 47, cat: Movies/HD, desc: "Movies - Blu-Ray 1080p"}
|
||
|
- {id: 42, cat: Movies/BluRay, desc: "Movies - Blu-Ray 720p"}
|
||
|
- {id: 24, cat: Movies/SD, desc: "Movies - Blu-Ray SD"}
|
||
|
- {id: 82, cat: Movies/WEB-DL, desc: "Movies - WEB-DL 4K"}
|
||
|
- {id: 55, cat: Movies/WEB-DL, desc: "Movies - WEB-DL"}
|
||
|
- {id: 83, cat: Movies/WEB-DL, desc: "Movies - WEBRip"}
|
||
|
- {id: 46, cat: Movies/HD, desc: "Movies - HD-Rip"}
|
||
|
- {id: 1, cat: Movies/SD, desc: "Movies - DVDRip"}
|
||
|
- {id: 4, cat: Movies/SD, desc: "Movies - CAM | TS | DVDScr | Pre-DVD"}
|
||
|
- {id: 67, cat: Movies/3D, desc: "Movies - 3D"}
|
||
|
- {id: 3, cat: Movies, desc: "Movies - Unrated"}
|
||
|
- {id: 2, cat: Movies, desc: "Movies - Packs"}
|
||
|
- {id: 22, cat: Audio, desc: "Music - Audio"}
|
||
|
- {id: 71, cat: Audio/Lossless, desc: "Music - Lossless"}
|
||
|
- {id: 25, cat: Audio/Video, desc: "Music - Video"}
|
||
|
- {id: 64, cat: Audio, desc: "Music - Concerts | Live Shows"}
|
||
|
- {id: 26, cat: Audio, desc: "Music - Radio"}
|
||
|
- {id: 38, cat: PC/Mobile-Other, desc: "Other - Mobile Phone"}
|
||
|
- {id: 44, cat: Other, desc: "Other - Religious"}
|
||
|
- {id: 40, cat: Other, desc: "Other - Miscellaneous"}
|
||
|
- {id: 70, cat: TV/Sport, desc: "Sports - Football"}
|
||
|
- {id: 6, cat: TV/Sport, desc: "Sports - Pro Wrestling"}
|
||
|
- {id: 48, cat: TV/Sport, desc: "Sports - All"}
|
||
|
- {id: 39, cat: Other, desc: "Tutorials - All"}
|
||
|
- {id: 84, cat: TV/UHD, desc: "TV - Episodes 4K"}
|
||
|
- {id: 61, cat: TV/HD, desc: "TV - Episodes 720p | 1080p"}
|
||
|
- {id: 5, cat: TV/SD, desc: "TV - Episodes SD"}
|
||
|
- {id: 85, cat: TV/UHD, desc: "TV - Packs 4K"}
|
||
|
- {id: 62, cat: TV/HD, desc: "TV - Packs - 720p | 1080p"}
|
||
|
- {id: 41, cat: TV/SD, desc: "TV - Packs SD"}
|
||
|
- {id: 66, cat: TV, desc: "TV - Awards | Ceremonies"}
|
||
|
|
||
|
modes:
|
||
|
search: [q]
|
||
|
tv-search: [q, season, ep]
|
||
|
movie-search: [q]
|
||
|
music-search: [q]
|
||
|
book-search: [q]
|
||
|
|
||
|
settings:
|
||
|
- name: cookie
|
||
|
type: text
|
||
|
label: Cookie
|
||
|
- name: info_cookie
|
||
|
type: info
|
||
|
label: How to get the Cookie
|
||
|
default: "<ol><li>Login to this tracker with your browser</li><li>Ensure you have the <b>Remember me</b> ticked and the <b>Log Me Out if IP Changes</b> unticked when you login</li><li>Open the <b>DevTools</b> panel by pressing <b>F12</b></li><li>Select the <b>Network</b> tab</li><li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)</li><li>Refresh the page by pressing <b>F5</b></li><li>Click on the first row entry</li><li>Select the <b>Headers</b> tab on the Right panel</li><li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</li></ol>"
|
||
|
- name: useragent
|
||
|
type: text
|
||
|
label: User-Agent
|
||
|
- name: info_useragent
|
||
|
type: info
|
||
|
label: How to get the User-Agent
|
||
|
default: "<ol><li>From the same place you fetched the cookie,</li><li>Find <b>'user-agent:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole user-agent string <i>(everything after 'user-agent: ')</i> and <b>Paste</b> here.</li></ol>"
|
||
|
- name: freeleech
|
||
|
type: checkbox
|
||
|
label: Search freeleech only
|
||
|
default: false
|
||
|
|
||
|
login:
|
||
|
method: cookie
|
||
|
inputs:
|
||
|
cookie: "{{ .Config.cookie }}"
|
||
|
test:
|
||
|
path: /
|
||
|
selector: button[href="account-logout.php"]
|
||
|
|
||
|
search:
|
||
|
headers:
|
||
|
User-Agent: ["{{ .Config.useragent }}"]
|
||
|
|
||
|
paths:
|
||
|
- path: ajgettorrents.php
|
||
|
method: post
|
||
|
inputs:
|
||
|
page: 1
|
||
|
origin: home
|
||
|
# sort is not available on first call, requires 2nd call to ajsearch.php
|
||
|
sortBy: ""
|
||
|
query: "{{ .Keywords }}"
|
||
|
fl: "{{ if .Config.freeleech }}true{{ else }}false{{ end }}"
|
||
|
# internal
|
||
|
intrls: false
|
||
|
# activeonly
|
||
|
active: false
|
||
|
spcat: ""
|
||
|
|
||
|
rows:
|
||
|
selector: table.torrents-table > tbody > tr
|
||
|
|
||
|
fields:
|
||
|
category:
|
||
|
selector: td[onclick^="mtt.getSpCatTorrents"]
|
||
|
attribute: onclick
|
||
|
filters:
|
||
|
- name: regexp
|
||
|
args: (\d+)
|
||
|
title:
|
||
|
selector: a[href^="torrents-details.php?id="]
|
||
|
details:
|
||
|
selector: a[href^="torrents-details.php?id="]
|
||
|
attribute: href
|
||
|
download:
|
||
|
selector: a[href*="download.php?id="]
|
||
|
attribute: href
|
||
|
date:
|
||
|
selector: td.torrent-name span:last-child
|
||
|
filters:
|
||
|
- name: replace
|
||
|
args: ["<", ""]
|
||
|
- name: replace
|
||
|
args: ["mo", " months"]
|
||
|
- name: replace
|
||
|
args: ["s", " seconds"]
|
||
|
- name: replace
|
||
|
args: ["m", " minutes"]
|
||
|
- name: replace
|
||
|
args: ["h", " hours"]
|
||
|
- name: replace
|
||
|
args: ["d", " days"]
|
||
|
- name: replace
|
||
|
args: ["w", "weeks"]
|
||
|
- name: replace
|
||
|
args: ["y", "years"]
|
||
|
- name: timeago
|
||
|
size:
|
||
|
selector: td:nth-child(6)
|
||
|
seeders:
|
||
|
selector: td:nth-child(7)
|
||
|
leechers:
|
||
|
selector: td:nth-child(8)
|
||
|
grabs:
|
||
|
selector: td:nth-child(9)
|
||
|
downloadvolumefactor:
|
||
|
case:
|
||
|
img[src="images/free.gif"]: 0
|
||
|
"*": 1
|
||
|
uploadvolumefactor:
|
||
|
text: 1
|
||
|
minimumratio:
|
||
|
text: 0.5
|
||
|
minimumseedtime:
|
||
|
# 2 days (as seconds = 2 x 24 x 60 x 60)
|
||
|
text: 172800
|
||
|
# engine n/a
|