limetorrents: convert to categorymappings

code tidy
add info about 8000
This commit is contained in:
Garfield69 2020-11-03 13:42:43 +13:00
parent 49b11b0fd3
commit a6b30e9bc0
1 changed files with 45 additions and 41 deletions

View File

@ -36,14 +36,14 @@ legacylinks:
- https://limetorrents.unblockit.top/
caps:
categories:
"TV shows": TV
Movies: Movies
Music: Audio
Games: Console
Applications: PC/0day
Other: Other/Misc
Anime: TV/Anime
categorymappings:
- {id: "TV shows", cat: TV, desc: "TV shows"}
- {id: Movies, cat: Movies, desc: Movies}
- {id: Music, cat: Audio, desc: Music}
- {id: Games, cat: Console, desc: Games}
- {id: Applications, cat: PC/0day, desc: Applications}
- {id: Other, cat: Other, desc: Other}
- {id: Anime, cat: TV/Anime, desc: Anime}
modes:
search: [q]
@ -57,8 +57,8 @@ settings:
label: Download link
default: "magnet:"
options:
"http://itorrents.org/": "iTorrents.org"
"magnet:": "magnet"
"http://itorrents.org/": iTorrents.org
"magnet:": magnet
- name: sort
type: select
label: Sort requested from site
@ -67,6 +67,10 @@ settings:
date: created
seeds: seeders
size: size
- name: info_8000
type: info
label: About LimeTorrents Categories
default: LimeTorrents only returns category <b>Other</b> in its <i>Keywordless</i> search results page.</br>To pass your apps' indexer TEST you will need to include the 8000(Other) category.
download:
# the .torrent url is on the on the details page
@ -75,44 +79,15 @@ download:
search:
paths:
- path: "{{ if .Keywords }}search/all/{{ .Keywords }}/{{ .Config.sort }}/1/{{else}}/latest100{{end}}"
- path: "{{ if .Keywords }}search/all/{{ .Keywords }}/{{ .Config.sort }}/1/{{ else }}/latest100{{ end }}"
keywordsfilters:
- name: re_replace
args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode
rows:
selector: ".table2 > tbody > tr[bgcolor]"
selector: .table2 > tbody > tr[bgcolor]
fields:
title:
selector: div.tt-name > a[href^="/"]
attribute: href
filters:
- name: regexp
args: "/(.+?)-torrent-\\d+\\.html"
- name: re_replace
args: ["-", " "]
details:
selector: div.tt-name > a[href^="/"]
attribute: href
size:
selector: td:nth-child(3)
seeders:
selector: .tdseed
leechers:
selector: .tdleech
date:
selector: td:nth-child(2)
filters:
- name: split
args: ["-", 0]
- name: replace
args: ["Last Month", "1 month ago"]
- name: replace
args: ["+", " ago"]
download:
selector: div.tt-name > a[href^="/"]
attribute: href
category:
text: Other
category|noappend:
@ -125,6 +100,35 @@ search:
args: [" in ", ""]
- name: replace
args: [".", ""]
title:
selector: div.tt-name > a[href^="/"]
attribute: href
filters:
- name: regexp
args: "/(.+?)-torrent-\\d+\\.html"
- name: re_replace
args: ["-", " "]
details:
selector: div.tt-name > a[href^="/"]
attribute: href
download:
selector: div.tt-name > a[href^="/"]
attribute: href
date:
selector: td:nth-child(2)
filters:
- name: split
args: ["-", 0]
- name: replace
args: ["Last Month", "1 month ago"]
- name: replace
args: ["+", " ago"]
size:
selector: td:nth-child(3)
seeders:
selector: .tdseed
leechers:
selector: .tdleech
downloadvolumefactor:
text: 0
uploadvolumefactor: