From 409dc236ff488650edc85239ea8968050b8eeb52 Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Fri, 6 Jan 2023 22:03:47 +0100 Subject: [PATCH] feat(indexers): add SkipTheCommericals (#625) * feat(indexers): add SkipTheCommericals (STC) * feat(indexers): stc use latest pattern * feat(indexers): stc use correct pattern * feat(indexers): stc remove unused vars --- .../definitions/skipthecommericals.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 internal/indexer/definitions/skipthecommericals.yaml diff --git a/internal/indexer/definitions/skipthecommericals.yaml b/internal/indexer/definitions/skipthecommericals.yaml new file mode 100644 index 0000000..006de36 --- /dev/null +++ b/internal/indexer/definitions/skipthecommericals.yaml @@ -0,0 +1,68 @@ +--- +#id: skipthecommericals +name: SkipTheCommericals +identifier: stc +description: SkipTheCommericals (STC) is a Private Torrent Tracker for TV +language: en-us +urls: + - https://skipthecommericals.xyz/ +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: SkipTheCommericals + server: irc.skipthecommericals.xyz + port: 6697 + tls: true + channels: + - "#announce" + announcers: + - STCBOT + 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: + - "Category [TV Show] Type [WEB-DL] Name [The best show S24E10 Jumped In 1080p AMZN WEB-DL DD+ 5.1 H.264-NTb] Freeleech [0%] Double Upload [No] Size [2.9 GB] Uploader [userone] Url [https://skipthecommericals.xyz/torrent/download/00000]" + pattern: 'Category \[(.+)\] Type \[(.+)\] Name \[(.+?)\] Freeleech \[(.+)\] Double Upload \[(.+)\] Size \[(.+)\] Uploader \[(.+)\] Url \[(https?\:\/\/.+\/).+\/.+\/(\d+)\]' + vars: + - category + - releaseTags + - torrentName + - freeleechPercent + - tags + - torrentSize + - uploader + - baseUrl + - torrentId + + match: + torrenturl: "/torrent/download/{{ .torrentId }}.{{ .rsskey }}"