From 86725d804ec2abe59941bc6ebcef50c70805852b Mon Sep 17 00:00:00 2001 From: costaht <50637431+costaht@users.noreply.github.com> Date: Thu, 30 Mar 2023 16:07:08 -0400 Subject: [PATCH] feat(indexers): add Locadora (#796) * Adds Locadora That file adds a new indexer to autobrr * Update locadora.yml * rename to locadora.yaml in order for autobrr to recognize the definition * Adding NickServ authentication --------- Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com> --- internal/indexer/definitions/locadora.yaml | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 internal/indexer/definitions/locadora.yaml diff --git a/internal/indexer/definitions/locadora.yaml b/internal/indexer/definitions/locadora.yaml new file mode 100644 index 0000000..4c8eea7 --- /dev/null +++ b/internal/indexer/definitions/locadora.yaml @@ -0,0 +1,68 @@ +--- +#id: Locadora +name: Locadora +identifier: locadora +description: Locadora is a Brazilian tracker for Movies, TV Shows and Animes. +language: pt-BR +urls: + - https://locadora.cc/ +privacy: private +protocol: torrent +supports: + - irc + # - rss +source: UNIT3D +settings: + - name: rsskey + type: secret + required: true + label: RSS key (RID) + help: "Go to your profile tab, Settings > Security, copy RSS Key (RID)" + +irc: + network: locadora.cc + server: irc.locadora.cc + port: 6667 + tls: false + channels: + - "#announce" + announcers: + - LCD + settings: + - name: nick + type: text + required: true + label: Nick + help: Bot nick. Eg. user_bot + + - name: auth.account + type: text + required: false + label: NickServ Account + help: NickServ account. Make sure to group your user and bot. + + - name: auth.password + type: secret + required: false + label: NickServ Password + help: NickServ password + + parse: + type: single + lines: + - test: + - "[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%]" + pattern: '\[(.+)\] \[(.+)\] \[(.+)\] \[(.+?)\] \[(https?\:\/\/.+\/).+\/(\d+)\] \[(.+?)\] \[(.+?)\]' + vars: + - category + - releaseTags + - resolution + - torrentName + - baseUrl + - torrentId + - torrentSize + - freeleechPercent + + match: + infourl: "/torrents/{{ .torrentId }}" + torrenturl: "/torrent/download/{{ .torrentId }}.{{ .rsskey }}"