From f2ce167bbf079327a5ce5e3105811e8a8de3f5fa Mon Sep 17 00:00:00 2001 From: Francis Noel Date: Fri, 11 Aug 2017 07:45:49 -0400 Subject: [PATCH] t411 v2 (#1620) * New nextorrent URL Change url to : http://www.nextorrent.cx Fix search url * new cpasbien url Change to : http://cpabien.cc * Add zetorrents tracker * t411 v2 + remove maniatorrent * Update Jackett.Updater (remove maniatorrent) * fix the formatting Change TAB with SPACE --- README.md | 2 +- src/Jackett.Updater/Program.cs | 1 + src/Jackett/Definitions/maniatorrent.yml | 88 ------------------- src/Jackett/Definitions/t411v2.yml | 104 +++++++++++++++++++++++ 4 files changed, 106 insertions(+), 89 deletions(-) delete mode 100644 src/Jackett/Definitions/maniatorrent.yml create mode 100644 src/Jackett/Definitions/t411v2.yml diff --git a/README.md b/README.md index 4cca43895..70557e1ee 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * KickAssTorrent * KickAssTorrent (kat.how clone) * LimeTorrents - * Mania-Torrent * NextTorrent * Nyaa.si * Nyaa-Pantsu @@ -222,6 +221,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Trezzor * TV Chaos UK * TV-Vault + * T411_v2 * u-Torrent * UHDBits * Ultimate Gamer Club diff --git a/src/Jackett.Updater/Program.cs b/src/Jackett.Updater/Program.cs index 6bc6969e8..ec16ce9c3 100644 --- a/src/Jackett.Updater/Program.cs +++ b/src/Jackett.Updater/Program.cs @@ -185,6 +185,7 @@ namespace Jackett.Updater "Definitions/rarbg.yml", "Definitions/t411.yml", "Definitions/hdbc.yml", // renamed to hdbitscom + "Definitions/maniatorrent.yml", "Definitions/nyaa.yml", "Definitions/nachtwerk.yml", }; diff --git a/src/Jackett/Definitions/maniatorrent.yml b/src/Jackett/Definitions/maniatorrent.yml deleted file mode 100644 index 1ad5309e4..000000000 --- a/src/Jackett/Definitions/maniatorrent.yml +++ /dev/null @@ -1,88 +0,0 @@ ---- - site: maniatorrent - name: Mania-Torrent - language: fr-fr - type: public - encoding: UTF-8 - links: - - https://www.mania-torrent.ws/ - - caps: - categorymappings: - - {id: films, cat: Movies, desc: "Movies"} - - {id: series, cat: TV, desc: "TV"} - - modes: - search: [q] - tv-search: [q, season, ep] - - settings: [] - - download: - selector: a[href^="/get_torrent/"] - - search: - path: "/torrents/recherche/{{ .Query.Keywords }}" - rows: - selector: div.listing-torrent > table tbody tr - 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) - filters: - - name: re_replace - args: [ "\\.(\\d) Ko", "$1X00"] - - name: re_replace - args: [ " Ko", "000"] - - name: re_replace - args: [ "\\.(\\d) Mo", "$1X00000"] - - name: re_replace - args: [ " Mo", "000000"] - - name: re_replace - args: [ "\\.(\\d) Go", "$1X00000000"] - - name: re_replace - args: [ " Go", "000000000"] - - name: re_replace - args: [ "\\.(\\d) To", "$1X00000000000"] - - name: re_replace - args: [ " To", "000000000000"] - - name: replace - args: [ "X", "" ] - seeders: - text: 0 - seeders: - selector: td:nth-child(3) - optional: true - leechers: - text: 0 - leechers: - selector: td:nth-child(4) - optional: true - downloadvolumefactor: - text: "0" - uploadvolumefactor: - text: "1" \ No newline at end of file diff --git a/src/Jackett/Definitions/t411v2.yml b/src/Jackett/Definitions/t411v2.yml new file mode 100644 index 000000000..7b306d7c1 --- /dev/null +++ b/src/Jackett/Definitions/t411v2.yml @@ -0,0 +1,104 @@ +--- + site: t411v2 + name: t411 v2 + language: fr-fr + type: semi-private + encoding: UTF-8 + links: + - https://t411.si + caps: + categorymappings: + - {id: 1, cat: Movies} + - {id: 2, cat: TV} + modes: + search: [q] + tv-search: [q, season, ep] + settings: [] + + download: + selector: a[href^="/telecharger-torrent/"] + + search: + path: /torrents/search/?search={{ .Keywords}} + rows: + selector: div.isItem + fields: + site_date: + selector: div.gname 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: div.gname 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: div.gname a + attribute: href + download: + selector: div.gname a + attribute: href + size: + selector: div.gsmall:nth-child(5) span + filters: + - name: re_replace + args: [ "\\.(\\w+) K", "$1X00"] + - name: re_replace + args: [ " K", "000"] + - name: re_replace + args: [ "\\.(\\w+) M", "$1X0000"] + - name: re_replace + args: [ " M", "000000"] + - name: re_replace + args: [ "\\.(\\w+) G", "$1X0000000"] + - name: re_replace + args: [ " G", "000000000"] + seeders: + text: 0 + seeders: + selector: div.gsmall:nth-child(6) + optional: true + leechers: + text: 0 + leechers: + selector: div.gsmall:nth-child(7) + optional: true + downloadvolumefactor: + text: "0" + uploadvolumefactor: + text: "1" + date: + selector: div.gsmall:nth-child(4) span + filters: + - name: replace + args: [ " jours", " days"] + - name: replace + args: [ " jour", " day"] + - name: replace + args: [ " heures", " hours"] + - name: replace + args: [ " heure", " hour"] + - name: replace + args: [ " semaines", " weeks"] + - name: replace + args: [ " semaine", " week"] + - name: replace + args: [ " mois", " month"] + - name: replace + args: [ " ans", " years"] + - name: replace + args: [ " an", " year"] + - name: append + args: " ago"