From d8fd6f63fae777a1059a079508dbe4494fe6333c Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 27 Apr 2020 16:53:30 +1200 Subject: [PATCH] add anisource a public raws anime site. resolves #8347 --- README.md | 1 + src/Jackett.Common/Definitions/anisource.yml | 91 ++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 src/Jackett.Common/Definitions/anisource.yml diff --git a/README.md b/README.md index e9d75bbae..3f3c5d781 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Anidex * Anime Tosho * AniRena + * AniSource * AudioBook Bay (ABB) * Badass Torrents * BigFANGroup diff --git a/src/Jackett.Common/Definitions/anisource.yml b/src/Jackett.Common/Definitions/anisource.yml new file mode 100644 index 000000000..0da4c5bd6 --- /dev/null +++ b/src/Jackett.Common/Definitions/anisource.yml @@ -0,0 +1,91 @@ +--- + site: anisource + name: AniSource + description: "AniSource is a Public site for HD Anime raws." + language: en-us + type: public + encoding: UTF-8 + links: + - https://asnet.pw/ + + settings: [] + + caps: + categorymappings: + - {id: 1, cat: TV/Anime, desc: "Raw Animes"} + + modes: + search: [q] + tv-search: [q, season, ep] + + search: + paths: + - path: / + - path: / + inputs: + tpage: 2 + - path: / + inputs: + tpage: 3 + - path: / + inputs: + tpage: 4 + - path: / + inputs: + tpage: 5 + inputs: + search: "{{ .Keywords }}" + + rows: + selector: div[class^="item"] + + fields: + category: + text: 1 + title: + selector: a[href*="/showprofile/"] + filters: + # move group to the end + - name: re_replace + args: ["^(\\[.+?\\]) (.+?)$", "$2 $1"] + details: + selector: a[href*="/showprofile/"] + attribute: href + download: + selector: a[href*="/download/"] + attribute: href + magnet: + selector: a[href^="magnet:?xt="] + attribute: href + date: + selector: font[color="Black"] + filters: + - name: regexp + args: "Date: (.+?) Central" + - name: replace + args: [" at ", " "] + - name: append + args: " -09:00" + - name: dateparse + args: "2006-01-02 15:04 -07:00" + size: + selector: font[color="Black"] + filters: + - name: regexp + args: "Size: (.+?) \\|" + - name: replace + args: ["b", "B"] + files: + selector: font[color="Black"] + filters: + - name: regexp + args: (\d+)$ + seeders: + text: 1 + leechers: + text: 1 + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1 +# engine n/a