refactor(indexers): ANT improve freeleech support (#1302)

feat(indexers): add freeleech support for ANT
This commit is contained in:
Kuredant 2023-12-25 21:48:58 +09:00 committed by GitHub
parent 3fd939b531
commit 937d62fb82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,109 +1,125 @@
--- ---
#id: anthelion #id: anthelion
name: Anthelion name: Anthelion
identifier: anthelion identifier: anthelion
description: Anthelion (ANT) is a Private Torrent Tracker for MOVIES description: Anthelion (ANT) is a Private Torrent Tracker for MOVIES
language: en-us language: en-us
urls: urls:
- https://anthelion.me/ - https://anthelion.me/
privacy: private privacy: private
protocol: torrent protocol: torrent
supports: supports:
- irc - irc
- rss - rss
# source: gazelle # source: gazelle
settings: settings:
- name: torrent_pass - name: torrent_pass
type: secret type: secret
required: true required: true
label: Torrent pass label: Torrent pass
help: Right click DL on a torrent and get the torrent_pass. help: Right click DL on a torrent and get the torrent_pass.
irc: irc:
network: Nebulance network: Nebulance
server: irc.nebulance.cc server: irc.nebulance.cc
port: 6697 port: 6697
tls: true tls: true
channels: channels:
- "#ant-announce" - "#ant-announce"
announcers: announcers:
- Sauron - Sauron
settings: settings:
- name: nick - name: nick
type: text type: text
required: true required: true
label: Nick label: Nick
help: Bot nick. Must be like username|bot help: Bot nick. Must be like username|bot
- name: auth.account - name: auth.account
type: text type: text
required: false required: false
label: NickServ Account label: NickServ Account
help: NickServ account. Make sure to group your user and bot. help: NickServ account. Make sure to group your user and bot.
- name: auth.password - name: auth.password
type: secret type: secret
required: false required: false
label: NickServ Password label: NickServ Password
help: NickServ password help: NickServ password
- name: invite_command - name: invite_command
type: secret type: secret
default: "Sauron bot #ant-announce USERNAME IRCKEY" default: "Sauron bot #ant-announce USERNAME IRCKEY"
required: true required: true
label: Invite command label: Invite command
help: Invite auth with Sauron. Replace USERNAME and IRCKEY. help: Invite auth with Sauron. Replace USERNAME and IRCKEY.
parse: parse:
type: single type: single
lines: lines:
- tests: - tests:
- line: '[Feature Film] Tremar (1897) [H264 / MKV / Blu-ray / 1080p / DTS / Subs / Freeleech! / Filename: Tremar.1897.1080p.BluRay.DTS.x264-GROUP] [12.84 GiB - Uploader: user] https://anthelion.me/torrents.php?action=download&id=110 - action,horror,subtitles' - line: '[Feature Film] Tremar (1897) [H264 / MKV / Blu-ray / 1080p / DTS / Subs / Freeleech! / Filename: Tremar.1897.1080p.BluRay.DTS.x264-GROUP] [12.84 GiB - Uploader: user] https://anthelion.me/torrents.php?action=download&id=110 - action,horror,subtitles'
expect: expect:
category: Feature Film category: Feature Film
year: "1897" year: "1897"
releaseTags: H264 / MKV / Blu-ray / 1080p / DTS / Subs / Freeleech! releaseTags: H264 / MKV / Blu-ray / 1080p / DTS / Subs
torrentName: Tremar.1897.1080p.BluRay.DTS.x264-GROUP freeleech: Freeleech!
torrentSize: 12.84 GiB torrentName: Tremar.1897.1080p.BluRay.DTS.x264-GROUP
uploader: user torrentSize: 12.84 GiB
baseUrl: https://anthelion.me/ uploader: user
torrentId: "110" baseUrl: https://anthelion.me/
tags: action,horror,subtitles torrentId: "110"
- line: '[Feature Film] Circus Du (1928) [H264 / MKV / Blu-ray / 1080p / AC3 / Scene / Freeleech! / Filename: Circus.Du.1928.1080p.BluRay.ACC.x264-GROUP] [8.24 GiB - Uploader: anon] https://anthelion.me/torrents.php?action=download&id=85 - comedy,romance' tags: action,horror,subtitles
expect: - line: '[Feature Film] Circus Du (1928) [H264 / MKV / Blu-ray / 1080p / AC3 / Scene / Freeleech! / Filename: Circus.Du.1928.1080p.BluRay.ACC.x264-GROUP] [8.24 GiB - Uploader: anon] https://anthelion.me/torrents.php?action=download&id=85 - comedy,romance'
category: Feature Film expect:
year: "1928" category: Feature Film
releaseTags: H264 / MKV / Blu-ray / 1080p / AC3 / Scene / Freeleech! year: "1928"
torrentName: Circus.Du.1928.1080p.BluRay.ACC.x264-GROUP releaseTags: H264 / MKV / Blu-ray / 1080p / AC3 / Scene
torrentSize: 8.24 GiB freeleech: Freeleech!
uploader: anon torrentName: Circus.Du.1928.1080p.BluRay.ACC.x264-GROUP
baseUrl: https://anthelion.me/ torrentSize: 8.24 GiB
torrentId: "85" uploader: anon
tags: comedy,romance baseUrl: https://anthelion.me/
- line: '[Feature Film] Judo (1918) [H264 / MKV / Blu-ray / 1080p / DTS / Subs / Freeleech! / Filename: Judo.1918.1080p.BluRay.DTS.x264-GROUP] [7.40 GiB - Uploader: user1] https://anthelion.me/torrents.php?action=download&id=117 - crime,drama,thriller,action,subtitles' torrentId: "85"
expect: tags: comedy,romance
category: Feature Film - line: '[Feature Film] Judo (1918) [H264 / MKV / Blu-ray / 1080p / DTS / Subs / Freeleech! / Filename: Judo.1918.1080p.BluRay.DTS.x264-GROUP] [7.40 GiB - Uploader: user1] https://anthelion.me/torrents.php?action=download&id=117 - crime,drama,thriller,action,subtitles'
year: "1918" expect:
releaseTags: H264 / MKV / Blu-ray / 1080p / DTS / Subs / Freeleech! category: Feature Film
torrentName: Judo.1918.1080p.BluRay.DTS.x264-GROUP year: "1918"
torrentSize: 7.40 GiB releaseTags: H264 / MKV / Blu-ray / 1080p / DTS / Subs
uploader: user1 freeleech: Freeleech!
baseUrl: https://anthelion.me/ torrentName: Judo.1918.1080p.BluRay.DTS.x264-GROUP
torrentId: "117" torrentSize: 7.40 GiB
tags: crime,drama,thriller,action,subtitles uploader: user1
baseUrl: https://anthelion.me/
pattern: '\[(.*?)\] .* \((.*)\) \[(.*) \/ Filename: (.*)\] \[(.*) - Uploader: (.*)\] (https?\:\/\/.*\/).*id=(\d+).* - (.*)' torrentId: "117"
vars: tags: crime,drama,thriller,action,subtitles
- category - line: '[Feature Film] Non-Freeleech Movie (1997) [H264 / MKV / WEB / 1080p / AC3 / Subs / ReleaseGrp / Filename: Non-Freeleech.Movie.1997.1080p.AMZN.WEB-DL.DDP5.1.x264-ReleaseGrp.mkv] [6.68 GiB - Uploader: user2] https://anthelion.me/torrents.php?action=download&id=70000 - comedy,drama,romance,subtitles'
- year expect:
- releaseTags category: Feature Film
- torrentName year: "1997"
- torrentSize releaseTags: H264 / MKV / WEB / 1080p / AC3 / Subs / ReleaseGrp
- uploader freeleech: ""
- baseUrl torrentName: Non-Freeleech.Movie.1997.1080p.AMZN.WEB-DL.DDP5.1.x264-ReleaseGrp.mkv
- torrentId torrentSize: 6.68 GiB
- tags uploader: user2
baseUrl: https://anthelion.me/
match: torrentId: "70000"
infourl: "/torrents.php?torrentid={{ .torrentId }}" tags: comedy,drama,romance,subtitles
torrenturl: "/torrents.php?action=download&id={{ .torrentId }}&torrent_pass={{ .torrent_pass }}"
pattern: '\[(.*?)\] .* \((.*)\) \[(.*?)(?: \/ (Freeleech!))? \/ Filename: (.*)\] \[(.*) - Uploader: (.*)\] (https?\:\/\/.*\/).*id=(\d+).* - (.*)'
vars:
- category
- year
- releaseTags
- freeleech
- torrentName
- torrentSize
- uploader
- baseUrl
- torrentId
- tags
match:
infourl: "/torrents.php?torrentid={{ .torrentId }}"
torrenturl: "/torrents.php?action=download&id={{ .torrentId }}&torrent_pass={{ .torrent_pass }}"