From 11eab6ed3cccb311c3380b1923de53a9dba32679 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 9 Jul 2023 10:39:50 +1200 Subject: [PATCH] add simpleanime a Chinese public anime site. resolves #14547 --- README.md | 1 + .../Definitions/simpleanime.yml | 87 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 src/Jackett.Common/Definitions/simpleanime.yml diff --git a/README.md b/README.md index 3560f826a..b196b281d 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht * Sexy-Pics * Shana Project * ShowRSS + * SimpleAnime * Solid Torrents * sosulki * SubsPlease diff --git a/src/Jackett.Common/Definitions/simpleanime.yml b/src/Jackett.Common/Definitions/simpleanime.yml new file mode 100644 index 000000000..4e3d397bf --- /dev/null +++ b/src/Jackett.Common/Definitions/simpleanime.yml @@ -0,0 +1,87 @@ +--- +id: simpleanime +name: SimpleAnime +description: "SimpleAnime is a CHINESE Public torrent tracker for ANIME" +language: zh-CN +type: public +encoding: UTF-8 +links: + - https://www.36dm.org/ + +caps: + categories: + Anime: TV/Anime + + modes: + search: [q] + tv-search: [q, season, ep] + music-search: [q] + book-search: [q] + +settings: [] + +download: + # cant use magnet directly, generates Invalid non-ASCII or control character in header: 0x79BB + infohash: + hash: + selector: a[href^="magnet:?xt="] + attribute: href + filters: + - name: regexp + args: ([A-F|a-f|0-9]{40}) + title: + selector: h4 + filters: + - name: trim + - name: validfilename + +search: + paths: + # https://www.36dm.org/ + # https://www.36dm.org/search-gene_20ai.htm + - path: "{{ if .Keywords }}search-{{ .Keywords }}-1.htm{{ else }}/{{ end }}" + keywordsfilters: + - name: replace + args: [" ", "_20"] + + rows: + selector: ul.threadlist > li:not(:has(a[href="thread-293154.htm"])) + + fields: + category: + text: Anime + title: + selector: a[href^="thread-"] + details: + selector: a[href^="thread-"] + attribute: href + download: + selector: a[href^="thread-"] + attribute: href + date: + selector: span.date + filters: + - name: replace + args: ["秒前", " seconds ago"] + - name: replace + args: ["分钟前", " minutes ago"] + - name: replace + args: ["小时前", " hours ago"] + - name: replace + args: ["天前", " days ago"] + - name: replace + args: ["月前", " months ago"] + - name: replace + args: ["年前", " years ago"] + - name: timeago + size: + text: 512MB + seeders: + text: 1 + leechers: + text: 1 + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1 +# BBS 4.0.4