From b95c1e69138cd9c0bcd412298654dfe33e0dcd2f Mon Sep 17 00:00:00 2001 From: soup Date: Sun, 29 Jan 2023 17:40:55 +0100 Subject: [PATCH] feat(indexers): add LST (#682) * feat(indexers): add LST * added infourl --- internal/indexer/definitions/lst.yaml | 66 +++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 internal/indexer/definitions/lst.yaml diff --git a/internal/indexer/definitions/lst.yaml b/internal/indexer/definitions/lst.yaml new file mode 100644 index 0000000..6d31699 --- /dev/null +++ b/internal/indexer/definitions/lst.yaml @@ -0,0 +1,66 @@ +--- +#id: lst +name: LST +identifier: lst +description: LST is an English private tracker for MOVIES / TV / GENERAL +language: en-us +urls: + - https://lst.gg/ +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: LST + server: irc.lst.gg + port: 6697 + tls: true + channels: + - "#announce" + announcers: + - LSTANNOUNCE + settings: + - name: nick + type: text + required: true + label: Username + help: Must be your site username. + + - name: pass + type: secret + required: false + label: IRC key + help: Generated IRC key can be found on your profile. + + parse: + type: single + lines: + - test: + - "Category [Movies] Type [Remux] Name [Movie1995 1080p BluRay REMUX AVC DTS-HD MA 5.1-Ripper] Resolution [1080p] Freeleech [0%] Internal [No] Double Upload [No] Size [37.81 GiB] Uploader [GRiMM] Url [http://lst.gg/torrents/00000]" + - "Category [Movies] Type [Remux] Name [Some Random Movie 1985 1080p BluRay REMUX VC-1 DTS-HD MA 5.1-Ripper] Freeleech [0%] Internal [No] Double Upload [No] Size [25.35 GiB] Uploader [GRiMM] Url [http://lst.gg/torrents/00000]" + pattern: 'Category \[(.*)\] Type \[(.*)\] Name \[(.*?)\] ?(?:Resolution \[(.*)\])? Freeleech \[(.*)\] Internal \[(.*)\] Double Upload \[(.*)\] Size \[(.*)\] Uploader \[(.*)\] Url \[(https?://.+/).+/(\d+)\]' + vars: + - category + - releaseTags + - torrentName + - resolution + - freeleechPercent + - internal + - tags + - torrentSize + - uploader + - baseUrl + - torrentId + + match: + infourl: "/torrents/{{ .torrentId }}" + torrenturl: "/torrent/download/{{ .torrentId }}.{{ .rsskey }}"