From 894688337e7ddbae46b96f08f2a6e748751cf471 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Fri, 9 Dec 2016 17:01:01 +0100 Subject: [PATCH] Add MySpleen tracker (#829) --- README.md | 1 + src/Jackett/Definitions/myspleen.yml | 97 ++++++++++++++++++++++++++++ src/Jackett/Jackett.csproj | 3 + 3 files changed, 101 insertions(+) create mode 100644 src/Jackett/Definitions/myspleen.yml diff --git a/README.md b/README.md index 257118ab9..c5c1e6b9a 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * MoreThanTV * MyAnonamouse * myAmity + * MySpleen * NCore * NetHD * NextGen diff --git a/src/Jackett/Definitions/myspleen.yml b/src/Jackett/Definitions/myspleen.yml new file mode 100644 index 000000000..07a27c36f --- /dev/null +++ b/src/Jackett/Definitions/myspleen.yml @@ -0,0 +1,97 @@ +--- + site: myspleen + name: MySpleen + language: en-us + encoding: UTF-8 + links: + - https://www.myspleen.org + + caps: + categories: + 31: TV # Adult Swim + 30: TV # Animation + 25: TV # Cartoon Network + 3: TV # Comedy + 26: TV # Comedy Central + 24: TV # MST3K + 28: TV # MTV + 29: TV # Nick + 20: Other # Other + 32: TV # Star Wars + + modes: + search: [q] + tv-search: [q, season, ep] + + login: + path: /takelogin.php + method: post + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + returnto: "/" + error: + - selector: div#content:has(h2:contains("Login Failed")) + test: + path: /browse.php + selector: span.key:contains("Ratio") + span.value + + ratio: + path: /browse.php + selector: span.key:contains("Ratio") + span.value + + search: + path: /browse.php + method: post + inputs: + $raw: "{{range .Categories}}c{{.}}=1&{{end}}" + search: "{{ .Query.Keywords }}" + incldead: "1" + title: "0" + rows: + selector: table#main-torrents > tbody > tr + fields: + title: + selector: td.tor-name > a + attribute: title + category: + selector: td[class^="cat-"] > a + attribute: href + filters: + - name: querystring + args: cat + details: + selector: td.tor-name > a + attribute: href + download: + selector: td.tor-down > a + attribute: href + files: + selector: td:nth-child(5) + size: + selector: td:nth-child(8) + grabs: + selector: td:nth-child(9) + filters: + - name: regexp + args: "(\\d+)" + seeders: + selector: td:nth-child(10) + filters: + - name: regexp + args: "^(\\d+)" + leechers: + selector: td:nth-child(11) + filters: + - name: regexp + args: "^(\\d+)" + date: + selector: td:nth-child(7) + downloadvolumefactor: + case: + span.star: "0" + span.fltime: "0" + "*": "1" + uploadvolumefactor: + case: + "*": "1" \ No newline at end of file diff --git a/src/Jackett/Jackett.csproj b/src/Jackett/Jackett.csproj index b148e20c1..1a4f3439b 100644 --- a/src/Jackett/Jackett.csproj +++ b/src/Jackett/Jackett.csproj @@ -437,6 +437,9 @@ PreserveNewest + + PreserveNewest + Designer