torrentbd: refresh cats

fix date parsing
correct internal-release parm
This commit is contained in:
Garfield69 2020-10-22 13:18:58 +13:00
parent 2c3e11a10a
commit 4862a6a63f
1 changed files with 37 additions and 46 deletions

View File

@ -16,70 +16,52 @@ caps:
categorymappings:
- {id: 28, cat: TV/Anime, desc: "Anime - All"}
- {id: 65, cat: PC/Phone-Android, desc: "Apps - Android"}
- {id: 20, cat: PC, desc: "Apps - Linux"}
- {id: 19, cat: PC/Mac, desc: "Apps - Mac"}
- {id: 18, cat: PC, desc: "Apps - PC"}
- {id: 19, cat: PC/Mac, desc: "Apps - Mac"}
- {id: 20, cat: PC, desc: "Apps - Linux"}
- {id: 7, cat: Movies, desc: "Bangla - Movies | Natok"}
- {id: 49, cat: TV, desc: "Cartoons - All"}
- {id: 9, cat: TV/Documentary, desc: "Documentaries - All"}
- {id: 73, cat: Books/Comics, desc: "E-Books - Comics"}
- {id: 36, cat: Books/Ebook, desc: "Other - E-Books"}
- {id: 77, cat: Books/Ebook, desc: "E-Books - Manga"}
- {id: 60, cat: PC/Games, desc: "Games - Cracks | Patches"}
- {id: 17, cat: Console, desc: "Games - Other"}
- {id: 73, cat: Books/Comics, desc: "E-Books - Comics"}
- {id: 10, cat: PC/Games, desc: "Games - PC"}
- {id: 43, cat: Console/PS3, desc: "Games - PS3"}
- {id: 60, cat: PC/Games, desc: "Games - Cracks | Patches"}
- {id: 52, cat: PC/Games, desc: "Games - Updates | DLC"}
- {id: 43, cat: Console/PS3, desc: "Games - PS3"}
- {id: 14, cat: Console/Xbox, desc: "Games - Xbox"}
- {id: 17, cat: Console, desc: "Games - Other"}
- {id: 80, cat: Movies/UHD, desc: "Movies - 4K BluRay"}
- {id: 47, cat: Movies/HD, desc: "Movies - 1080p BluRay"}
- {id: 67, cat: Movies/3D, desc: "Movies - 3D"}
- {id: 42, cat: Movies/BluRay, desc: "Movies - 720p BluRay"}
- {id: 4, cat: Movies/SD, desc: "Movies - CAM | TS | TC"}
- {id: 76, cat: Movies/BluRay, desc: "Movies - Lossless BluRay"}
- {id: 24, cat: Movies/SD, desc: "Movies - SD BluRay"}
- {id: 55, cat: Movies, desc: "Movies - WEB-DL | WEBRip"}
- {id: 46, cat: Movies/HD, desc: "Movies - HD-Rip"}
- {id: 1, cat: Movies/SD, desc: "Movies - DVDRip"}
- {id: 56, cat: Movies/SD, desc: "Movies - DVDSCR | R5 | R6"}
- {id: 46, cat: Movies/HD, desc: "Movies - HD-Rip"}
- {id: 76, cat: Movies/BluRay, desc: "Movies - Lossless BluRay"}
- {id: 2, cat: Movies, desc: "Movies - Packs"}
- {id: 24, cat: Movies/SD, desc: "Movies - SD BluRay"}
- {id: 4, cat: Movies/SD, desc: "Movies - CAM | TS | TC"}
- {id: 67, cat: Movies/3D, desc: "Movies - 3D"}
- {id: 3, cat: Movies, desc: "Movies - Unrated"}
- {id: 55, cat: Movies, desc: "Movies - WEB-DL | WEBRip"}
- {id: 2, cat: Movies, desc: "Movies - Packs"}
- {id: 22, cat: Audio, desc: "Music - Audio"}
- {id: 64, cat: Audio, desc: "Music - Concerts | Live Shows"}
- {id: 71, cat: Audio/Lossless, desc: "Music - Lossless"}
- {id: 26, cat: Audio, desc: "Music - Radio"}
- {id: 25, cat: Audio/Video, desc: "Music - Video"}
- {id: 36, cat: Books/Ebook, desc: "Other - E-Books"}
- {id: 37, cat: Other, desc: "Other - Images"}
- {id: 64, cat: Audio, desc: "Music - Concerts | Live Shows"}
- {id: 26, cat: Audio, desc: "Music - Radio"}
- {id: 38, cat: PC/Phone-Other, desc: "Other - Mobile Phone"}
- {id: 40, cat: Other, desc: "Other - Other | Misc"}
- {id: 39, cat: Other, desc: "Other - Tutorial"}
- {id: 44, cat: Other, desc: "Religious - Islam"}
- {id: 48, cat: TV/Sport, desc: "Sports - All"}
- {id: 37, cat: Other, desc: "Other - Images"}
- {id: 40, cat: Other, desc: "Other - Other | Misc"}
- {id: 70, cat: TV/Sport, desc: "Sports - Football"}
- {id: 6, cat: TV/Sport, desc: "Sports - Pro Wrestling"}
- {id: 66, cat: TV, desc: "TV - Awards | Ceremonies"}
- {id: 48, cat: TV/Sport, desc: "Sports - All"}
- {id: 39, cat: Other, desc: "Other - Tutorial"}
- {id: 5, cat: TV/SD, desc: "TV - Episodes"}
- {id: 61, cat: TV/HD, desc: "TV - Episodes - 720p | 1080p"}
- {id: 41, cat: TV/SD, desc: "TV - Packs"}
- {id: 62, cat: TV/HD, desc: "TV - Packs - HD | BRRip"}
# may be obsolete cats below
- {id: 33, cat: Other, desc: "Trailers - Movie | Games"}
- {id: 21, cat: Audio, desc: "Bangla - Audio"}
- {id: 78, cat: Audio, desc: "Music - Video 4K"}
- {id: 72, cat: Movies, desc: "Movies - WEB Rip"}
- {id: 50, cat: Audio, desc: "Music - OST"}
- {id: 34, cat: Movies, desc: "Movies - Tamil"}
- {id: 69, cat: Movies, desc: "Movies - Dual Audio"}
- {id: 57, cat: Movies, desc: "Movies - Animation"}
- {id: 11, cat: Console/PS3, desc: "Games - PS2"}
- {id: 14, cat: Console/Xbox360, desc: "Games - Xbox360"}
- {id: 12, cat: Console/PSP, desc: "Games - PSP"}
- {id: 23, cat: Movies/BluRay, desc: "Hindi - Blu-ray"}
- {id: 51, cat: Movies/SD, desc: "Hindi - CAM | TS | TC"}
- {id: 27, cat: Movies/DVD, desc: "Hindi - DVDRip"}
- {id: 58, cat: Movies/SD, desc: "Hindi - DVDScr | Pre-DVD"}
- {id: 68, cat: Movies/SD, desc: "Hindi - HD-Rip"}
- {id: 59, cat: Movies, desc: "Hindi - Web-Rip"}
- {id: 66, cat: TV, desc: "TV - Awards | Ceremonies"}
modes:
search: [q]
@ -116,11 +98,12 @@ search:
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
intris: false
intrls: false
# activeonly
active: false
spcat: ""
@ -140,21 +123,29 @@ search:
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: ["min", "minute"]
args: ["mo", " months"]
- name: replace
args: ["hr", "hour"]
args: ["s", " seconds"]
- name: replace
args: ["wk", "week"]
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
download:
selector: a[href*="download.php?id="]
attribute: href
comments:
selector: a[href*="#comments"]
attribute: href