From 50820e6374c1b3f3ba15ad73a41f99c29782e617 Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:08:28 +0100 Subject: [PATCH] feat(indexers): MAM filter VIP with release tags (#1932) feat(indexers): MAM parse VIP as releaseTags --- internal/indexer/definitions/myanonamouse.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/internal/indexer/definitions/myanonamouse.yaml b/internal/indexer/definitions/myanonamouse.yaml index a976a12..8a017c2 100644 --- a/internal/indexer/definitions/myanonamouse.yaml +++ b/internal/indexer/definitions/myanonamouse.yaml @@ -61,7 +61,7 @@ irc: language: English baseUrl: https://www.myanonamouse.net/ torrentId: "000000" - freeleech: "" + releaseTags: "" - line: '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' expect: torrentName: Some famous book @@ -72,7 +72,7 @@ irc: language: English baseUrl: https://www.myanonamouse.net/ torrentId: "000000" - freeleech: VIP + releaseTags: VIP pattern: 'New Torrent: (.*) By: (.*) Category: \( (.*) \) Size: \( (.*) \) Filetype: \( (.*) \) Language: \( (.*) \) Link: \( (https?\:\/\/[^\/]+\/).*?(\d+)\s*\)\s*(VIP)?' vars: - torrentName @@ -83,7 +83,12 @@ irc: - language - baseUrl - torrentId - - freeleech + - releaseTags + + mappings: + releaseTags: + "VIP": + freeleech: VIP match: infourl: "/t/{{ .torrentId }}"