From 866e1df174eb921bc0e01e7ab5b993f5f23f6d29 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Fri, 15 Sep 2017 17:05:55 +0200 Subject: [PATCH] Add GkTorrent tracker --- src/Jackett/Definitions/gktorrent.yml | 77 +++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 src/Jackett/Definitions/gktorrent.yml diff --git a/src/Jackett/Definitions/gktorrent.yml b/src/Jackett/Definitions/gktorrent.yml new file mode 100644 index 000000000..f93329486 --- /dev/null +++ b/src/Jackett/Definitions/gktorrent.yml @@ -0,0 +1,77 @@ +--- + site: gktorrent + name: GkTorrent + language: fr-fr + type: public + encoding: UTF-8 + links: + - https://www.gktorrent.com + + caps: + categorymappings: + - {id: movies, cat: Movies, desc: "Movies"} + - {id: tvshows, cat: TV, desc: "TV Shows"} + - {id: softwares, cat: PC, desc: "Softwares"} + - {id: music, cat: Audio, desc: "Music"} + - {id: games, cat: Console, desc: "Games"} + - {id: books, cat: Books, desc: "Books"} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + + settings: [] + + download: + selector: a[href^="/get_torrent/"] + + search: + path: "/search/{{ .Query.Keywords }}" + rows: + selector: div.listing-torrent > table > tbody > tr:has(a) + fields: + site_date: + selector: td:nth-child(1) a + filters: + # date is at the end of the title, so we get it and name it site_date + - name: regexp + args: "(\\w+)$" + title: + selector: td:nth-child(1) a + filters: + # now we put the date at the right place according scene naming rules using .Result.site_date + - name: replace + args: ["FRENCH", "{{ .Result.site_date }} FRENCH"] + - name: replace + args: ["TRUEFRENCH", "{{ .Result.site_date }} TRUEFRENCH"] + - name: replace + args: ["VOSTFR", "{{ .Result.site_date }} VOSTFR"] + # and we delete it at the end + - name: re_replace + args: ["(\\w+)$", ""] + details: + selector: td:nth-child(1) a + attribute: href + download: + selector: td:nth-child(1) a + attribute: href + size: + selector: td:nth-child(2) + seeders: + selector: td:nth-child(3) + leechers: + selector: td:nth-child(4) + downloadvolumefactor: + text: "0" + uploadvolumefactor: + text: "1" + category: + selector: td:nth-child(1) > i + case: + .Movies: "movies" + .TV: "tvshows" + .Softwares: "softwares" + .Music: "music" + .Games: "games" + .Books: "books"