From 4c39198c3731002a3d7bc95208291ba958201eb7 Mon Sep 17 00:00:00 2001 From: establish33 <165906083+establish33@users.noreply.github.com> Date: Sat, 30 Nov 2024 13:15:10 -0500 Subject: [PATCH] feat(indexers): add UploadCX (#1852) * Create uploadcx.yaml * fix: trim whitespace and remove percent sign --------- Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com> --- internal/indexer/definitions/uploadcx.yaml | 100 +++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 internal/indexer/definitions/uploadcx.yaml diff --git a/internal/indexer/definitions/uploadcx.yaml b/internal/indexer/definitions/uploadcx.yaml new file mode 100644 index 0000000..a571dd0 --- /dev/null +++ b/internal/indexer/definitions/uploadcx.yaml @@ -0,0 +1,100 @@ +--- +name: Upload.cx +identifier: ulcx +description: ULCX is an English private tracker focused on quality movies and tv. +language: en-us +urls: + - https://upload.cx/ +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 RID into this field." + +irc: + network: P2P-Network + server: irc.p2p-network.net + port: 6697 + tls: true + channels: + - "#ulcx-announce" + announcers: + - ULCX + 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: + - tests: + - line: "[upload.cx] - [An anonymous user] has uploaded [Vinland Saga 2019 S02 1080p BluRay REMUX AVC Dual-Audio AAC 2.0-ZR]. Grab it now! Category: [TV] Type: [Remux] Resolution: [1080p] Size: [105.1 GiB] Freeleech: [25] Link: [https://upload.cx/torrents/25678]" + expect: + uploader: An anonymous user + torrentName: Vinland Saga 2019 S02 1080p BluRay REMUX AVC Dual-Audio AAC 2.0-ZR + category: TV + releaseTags: Remux + resolution: 1080p + torrentSize: 105.1 GiB + freeleechPercent: 25 + baseUrl: https://upload.cx/ + torrentId: "25678" + - line: "[upload.cx] - [Nums] has uploaded [Wrath of Man 2021 Hybrid 2160p UHD BluRay REMUX HDR10+ HEVC TrueHD 7.1 Atmos-WiLDCAT]. Grab it now! Category: [Movies] Type: [Remux] Resolution: [2160p] Size: [70.68 GiB] Freeleech: [25] Link: [https://upload.cx/torrents/25682]" + expect: + uploader: Nums + torrentName: Wrath of Man 2021 Hybrid 2160p UHD BluRay REMUX HDR10+ HEVC TrueHD 7.1 Atmos-WiLDCAT + category: Movies + releaseTags: Remux + resolution: 2160p + torrentSize: 70.68 GiB + freeleechPercent: 25 + baseUrl: https://upload.cx/ + torrentId: "25682" + - line: "[upload.cx] - [ace] has uploaded [Aliens 1986 Theatrical 2160p UHD BluRay REMUX DV HDR HEVC TrueHD 7.1 Atmos-playBD]. Grab it now! Category: [Movies] Type: [Remux] Resolution: [2160p] Size: [55.99 GiB] Freeleech: [25] Link: [https://upload.cx/torrents/25685]" + expect: + uploader: ace + torrentName: Aliens 1986 Theatrical 2160p UHD BluRay REMUX DV HDR HEVC TrueHD 7.1 Atmos-playBD + category: Movies + releaseTags: Remux + resolution: 2160p + torrentSize: 55.99 GiB + freeleechPercent: 25 + baseUrl: https://upload.cx/ + torrentId: "25685" + pattern: '\[upload.cx\] - \[(.*)\] has uploaded \[(.*)\]. Grab it now! Category: \[(.*)\] Type: \[(.*)\] Resolution: \[(.*)\] Size: \[(.*)\] Freeleech: \[(.*)\] Link: \[(https?\:\/\/.*?\/).*\/(\d+)\]' + vars: + - uploader + - torrentName + - category + - releaseTags + - resolution + - torrentSize + - freeleechPercent + - baseUrl + - torrentId + + match: + infourl: "/torrents/{{ .torrentId }}" + torrenturl: "/torrent/download/{{ .torrentId }}.{{ .rsskey }}"