From c211641c2973d0e696760beed8b92a707260881f Mon Sep 17 00:00:00 2001 From: soup Date: Mon, 5 Feb 2024 06:00:58 +0100 Subject: [PATCH] feat(indexers): add ToonsForMe (#1388) --- internal/indexer/definitions/toonsforme.yaml | 83 ++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 internal/indexer/definitions/toonsforme.yaml diff --git a/internal/indexer/definitions/toonsforme.yaml b/internal/indexer/definitions/toonsforme.yaml new file mode 100644 index 0000000..2035637 --- /dev/null +++ b/internal/indexer/definitions/toonsforme.yaml @@ -0,0 +1,83 @@ +--- +#id: tfm +name: ToonsForMe +identifier: tfm +description: ToonsForMe (TFM) is an English private tracker +language: en-us +urls: + - https://toonsfor.me/ +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 > Settings > Security > RSS Key (RID) and paste your current RID into this field." + +irc: + network: OnlyEncodes + server: irc.onlyencodes.cc + port: 6697 + tls: true + channels: + - "#tfmannounce" + announcers: + - RobinHood + settings: + - name: nick + type: text + required: true + label: Bot nick + help: Bot nick. Eg. username|bot + + - name: auth.account + type: text + required: true + label: Username + help: Your username on the indexer. + + - name: auth.password + type: secret + required: true + label: IRC Password + help: Paste your IRC Password into this field. In case you don't have an IRC password, go to your profile > Settings > Security > IRC Password and generate one. + + parse: + type: single + lines: + - tests: + - line: Category [Movie] Type [Remux] Name [HomeMade Movie 1998 1080p BluRay REMUX AVC DD 2.0-Group] Resolution [1080p] Freeleech [0%] Internal [No] Double Upload [No] Size [16.8 GiB] Uploader [uploaderName] Url [https://toonsfor.me/torrents/download/1] + expect: + category: Movie + releaseTags: Remux + torrentName: HomeMade Movie 1998 1080p BluRay REMUX AVC DD 2.0-Group + resolution: 1080p + freeleechPercent: 0% + internal: "No" + tags: "No" + torrentSize: 16.8 GiB + uploader: uploaderName + baseUrl: https://toonsfor.me/torrents/ + torrentId: "1" + 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 }}"