From 2dbbd9751bb33dbb91a543e83e14df1dfc55798c Mon Sep 17 00:00:00 2001 From: Ludvig Lundgren Date: Tue, 12 Apr 2022 21:11:57 +0200 Subject: [PATCH] feat(indexers): add mam (#241) * feat(indexers): add mam * docs: add mam --- README.md | 1 + .../indexer/definitions/myanonamouse.yaml | 61 +++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 internal/indexer/definitions/myanonamouse.yaml diff --git a/README.md b/README.md index e52f25c..ee10a55 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ Is your tracker missing? Add an issue to request it. * HDB * HD-Torrents * IPTorrents + * MyAnonamouse * Milkie * MoreThanTV * Nebulance diff --git a/internal/indexer/definitions/myanonamouse.yaml b/internal/indexer/definitions/myanonamouse.yaml new file mode 100644 index 0000000..aab807f --- /dev/null +++ b/internal/indexer/definitions/myanonamouse.yaml @@ -0,0 +1,61 @@ +--- +#id: tracker01 +name: MyAnonamouse +identifier: myanonamouse +description: MyAnonaMouse (MAM) is a large ebook and audiobook tracker. +language: en-us +urls: + - https://www.myanonamouse.net +privacy: private +protocol: torrent +supports: + - irc + - rss +source: custom +settings: + - name: cookie + type: secret + label: Cookie (mam_id) + help: "Check how to get cookies in your browser and find the mam_id cookie. Changes monthly" + +irc: + network: MyAnonamouse + server: irc.myanonamouse.net + port: 6697 + tls: true + channels: + - "#announce" + announcers: + - MouseBot + settings: + - name: nickserv.account + type: text + required: true + label: NickServ Account + help: NickServ account. Make sure to group your user and bot. Eg. user_bot + - name: nickserv.password + type: secret + required: true + label: NickServ Password + help: NickServ password + +parse: + type: single + lines: + - test: + - "New Torrent: Some famous book By: Author name Category: ( Ebooks - Science Fiction ) Size: ( 1.00 MiB ) Filetype: ( epub, mobi ) Language: ( English ) Link: ( https://www.myanonamouse.net/t/000000 )" + - "New Torrent: Some famous book By: Author name Category: ( Ebooks - Science Fiction ) Size: ( 2.11 MiB ) Filetype: ( epub, mobi ) Language: ( English ) Link: ( https://www.myanonamouse.net/t/000000 ) VIP" + pattern: 'New Torrent: (.*) By: (.*) Category: \( (.*) \) Size: \( (.*) \) Filetype: \( (.*) \) Language: \( (.*) \) Link: \( (https?\:\/\/[^\/]+\/).*?(\d+)\s*\)\s*(VIP)?' + vars: + - torrentName + - author + - category + - torrentSize + - tags + - language + - baseUrl + - torrentId + - freeleech + + match: + torrenturl: "{{ .baseUrl }}tor/download.php?tid={{ .torrentId }}"