From fdea29103dd40f6161107a6522ea3b3e348867c4 Mon Sep 17 00:00:00 2001 From: costaht <50637431+costaht@users.noreply.github.com> Date: Tue, 27 Feb 2024 08:08:44 -0300 Subject: [PATCH] feat(indexers): Locadora add internal and tags var (#1433) * Adding internal and tags to the indexer We just added the fields internal and tvdb/tmdb ids to the announce and these are the new regular expressions to match those changes. Looking forward to having access to Tags as a variable to be used on scripts. Thank you * fix(indexers): remove superfluous characters in regex --------- Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com> --- internal/indexer/definitions/locadora.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/internal/indexer/definitions/locadora.yaml b/internal/indexer/definitions/locadora.yaml index a4c2e66..2c797b8 100644 --- a/internal/indexer/definitions/locadora.yaml +++ b/internal/indexer/definitions/locadora.yaml @@ -51,17 +51,19 @@ irc: type: single lines: - tests: - - line: '[Filmes] [WEB-DL] [1080p] [Journey to the Center of the Earth 2008 1080p HMAX WEB-DL DD5.1 x264 pt-BR ENG-LCD] [https://locadora.cc/torrents/16896] [5.82 GiB] [100%]' + - line: '[Filmes] [WEB-DL] [1080p] [Paul 2011 1080p AMZN WEB-DL DDP5.1 H.264 pt-BR ENG-LCD / Portuguese (BR) English (US)] [https://locadora.cc/torrents/28808] [7.61 GiB] [100%] [Internal:1] [tmdb-39513]' expect: category: Filmes releaseTags: WEB-DL resolution: 1080p - torrentName: Journey to the Center of the Earth 2008 1080p HMAX WEB-DL DD5.1 x264 pt-BR ENG-LCD + torrentName: Paul 2011 1080p AMZN WEB-DL DDP5.1 H.264 pt-BR ENG-LCD / Portuguese (BR) English (US) baseUrl: https://locadora.cc/ - torrentId: "16896" - torrentSize: 5.82 GiB + torrentId: "28808" + torrentSize: 7.61 GiB freeleechPercent: 100% - pattern: '\[(.+)\] \[(.+)\] \[(.+)\] \[(.+?)\] \[(https?\:\/\/.+\/).+\/(\d+)\] \[(.+?)\] \[(.+?)\]' + internal: "1" + tags: "39513" + pattern: '\[(.+)\] \[(.+)\] \[(.+)\] \[(.+?)\] \[(https?\:\/\/.+\/).+\/(\d+)\] \[(.+?)\] \[(.+?)\] \[Internal:(\d)\] \[[a-z]+-(\d+)\]' vars: - category - releaseTags @@ -71,6 +73,8 @@ irc: - torrentId - torrentSize - freeleechPercent + - internal + - tags match: infourl: "/torrents/{{ .torrentId }}"