From 47b83ebb6eb8efb79cde012c9e63f4d87b70ee85 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 8 May 2022 21:54:19 +1200 Subject: [PATCH] add shanaproject a Public anime site. resolves #6995 --- README.md | 1 + .../Definitions/shanaproject.yml | 108 ++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 src/Jackett.Common/Definitions/shanaproject.yml diff --git a/README.md b/README.md index 591f02477..a6b82acd4 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht * Seedoff * seleZen * Sexy-Pics + * Shana Project * ShizaProject * ShowRSS * Solid Torrents diff --git a/src/Jackett.Common/Definitions/shanaproject.yml b/src/Jackett.Common/Definitions/shanaproject.yml new file mode 100644 index 000000000..03b0388b1 --- /dev/null +++ b/src/Jackett.Common/Definitions/shanaproject.yml @@ -0,0 +1,108 @@ +--- +id: shanaproject +name: Shana Project +description: "Shana Project is a Public torrent site for ANIME" +language: en-US +type: public +encoding: UTF-8 +links: + - https://www.shanaproject.com/ + +settings: + - name: sort + type: select + label: Sort requested from site + default: date + options: + date: created + ep: episode + fsize: size + title: title + - name: type + type: select + label: Order requested from site + default: Descending + options: + Descending: desc + Ascending: asc + - name: info + type: info + label: Searching + default: This site only supports searching for Titles. Do not add a season or episode number, or a quality to your query. + +caps: + categorymappings: + - {id: Anime, cat: TV/Anime, desc: Anime} + + modes: + search: [q] + tv-search: [q] + +search: + paths: + - path: search/ + inputs: + title: "{{ .Keywords }}" + subber: "" + sort: "{{ .Config.sort }}" + dir: "{{ .Config.type }}" + + rows: + selector: div.grid_12 > div[id^="rel"] + + fields: + category: + text: Anime + title: + selector: div.release_leftover > div.release_text_contents + filters: + - name: re_replace + args: ["^(\\[.*\\]) (.*)", "$2 $1"] + - name: re_replace + args: ["(?i)(.mkv)", ""] + details: + selector: a + attribute: href + download: + selector: a[href^="/download/"] + attribute: href + date_full: + # May 8, 2022, 6:25 a.m. + selector: div.release_20:contains(".m."):contains(":") + optional: true + filters: + - name: re_replace + args: ["\\.", ""] + - name: dateparse + args: "January 2, 2006, 3:04 PM" + date_abbr: + # May 8, 2022, 6 a.m. + selector: div.release_20:contains(".m."):not(:contains(":")) + optional: true + filters: + - name: re_replace + args: ["\\.", ""] + - name: dateparse + args: "January 2, 2006, 3 PM" + date_noon: + # April 30, 2022, noon + selector: div.release_20:contains(", noon") + optional: true + filters: + - name: re_replace + args: [" noon", " 12 pm"] + - name: dateparse + args: "January 2, 2006, 3 PM" + date: + text: "{{ if or .Result.date_full .Result.date_abbr .Result.date_noon }}{{ or .Result.date_full .Result.date_abbr .Result.date_noon }}{{ else }}now{{ end }}" + size: + selector: div.release_size + seeders: + text: 1 + leechers: + text: 1 + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1 +# engine n/a