diff --git a/src/Jackett.Common/Definitions/gktorrent.yml b/src/Jackett.Common/Definitions/gktorrent.yml index 9b1b0e400..e0ecc17e2 100644 --- a/src/Jackett.Common/Definitions/gktorrent.yml +++ b/src/Jackett.Common/Definitions/gktorrent.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/oxtorrent.yml b/src/Jackett.Common/Definitions/oxtorrent.yml index c17c161d5..be4cd7e30 100644 --- a/src/Jackett.Common/Definitions/oxtorrent.yml +++ b/src/Jackett.Common/Definitions/oxtorrent.yml @@ -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