1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-26 16:12:55 +00:00

oxtorrent: add new category xxx. resolves #6714

This commit is contained in:
Garfield69 2019-12-29 10:32:38 +13:00
parent f9f7978a07
commit c13653f3b9
2 changed files with 35 additions and 29 deletions

View file

@ -51,9 +51,22 @@
search:
paths:
- path: "{{if .Keywords}}recherche/{{.Keywords}}{{else}}{{end}}"
rows:
selector: div.listing-torrent > table > tbody > tr:has(a)
fields:
category:
selector: td:nth-child(1) > i
case:
.Films: "movies"
.Séries: "tvshows"
.Logiciels: "softwares"
.Musique: "music"
.Jeux-Consoles: "console-games"
.Jeux-PC: "pc-games"
.Ebook: "books"
.Porno: "xxx"
site_date:
selector: td:nth-child(1) a
filters:
@ -83,24 +96,13 @@
attribute: href
size:
selector: td:nth-child(2)
date:
text: now
seeders:
selector: td:nth-child(3)
leechers:
selector: td:nth-child(4)
downloadvolumefactor:
text: "0"
text: 0
uploadvolumefactor:
text: "1"
category:
selector: td:nth-child(1) > i
case:
.Films: "movies"
.Séries: "tvshows"
.Logiciels: "softwares"
.Musique: "music"
.Jeux-Consoles: "console-games"
.Jeux-PC: "pc-games"
.Ebook: "books"
.Porno: "xxx"
date:
text: "now"
text: 1

View file

@ -21,6 +21,7 @@
- {id: console-games, cat: Console, desc: "Console Games"}
- {id: pc-games, cat: PC/Games, desc: "PC Games"}
- {id: books, cat: Books, desc: "Books"}
- {id: xxx, cat: XXX, desc: "XXX"}
modes:
search: [q]
@ -35,9 +36,22 @@
search:
paths:
- path: "{{if .Keywords}}recherche/{{.Keywords}}{{else}}{{end}}"
rows:
selector: div.listing-torrent > table > tbody > tr:has(a)
fields:
category:
selector: td:nth-child(1) i, td:nth-child(1) div i
case:
.Films: "movies"
.Séries: "tvshows"
.Logiciels: "softwares"
.Musique: "music"
.Jeux-Consoles: "console-games"
.Jeux-PC: "pc-games"
.Ebook: "books"
.Porno: "xxx"
site_date:
selector: td:nth-child(1) a
filters:
@ -67,23 +81,13 @@
attribute: href
size:
selector: td:nth-child(2)
date:
text: now
seeders:
selector: td:nth-child(3)
leechers:
selector: td:nth-child(4)
downloadvolumefactor:
text: "0"
text: 0
uploadvolumefactor:
text: "1"
category:
selector: td:nth-child(1) i, td:nth-child(1) div i
case:
.Films: "movies"
.Séries: "tvshows"
.Logiciels: "softwares"
.Musique: "music"
.Jeux-Consoles: "console-games"
.Jeux-PC: "pc-games"
.Ebook: "books"
date:
text: "now"
text: 1