2022-08-08 02:40:11 +00:00
---
id : anthelion-api
name : Anthelion (API)
description : "Anthelion is a Private MOVIES tracker"
language : en-US
type : private
encoding : UTF-8
2024-06-14 06:43:44 +00:00
# Status: https://ant.trackerstatus.info/
2022-08-08 02:40:11 +00:00
links :
- https://anthelion.me/
caps :
categorymappings :
- {id: 2000, cat : Movies}
- {id: 2030, cat : Movies/SD}
- {id: 2040, cat : Movies/HD}
- {id: 2045, cat : Movies/UHD}
- {id: 2050, cat : Movies/BluRay}
- {id: 2080, cat : Movies/WEB-DL}
- {id: 8000, cat : Other}
modes :
search : [ q]
movie-search : [ q, imdbid, tmdbid]
# note: the api any supports movie search so there is no tv season/episode support.
# not using year search because torznab adds it to the q= which results in &q=keyword+2022&year=2022 sent to api !?!
settings :
- name : apikey
type : text
label : APIKey
- name : info_key
type : info
label : About your API key
2023-04-28 18:45:59 +00:00
default : "Find or Generate a new API Key by accessing your <a href=\"https://anthelion.me/\" target=\"_blank\">Anthelion</a> account <i>Settings</i> page and scrolling down to the <b>API Key</b> section.<br>Tick the <b>Search</b> and <b>Download</b> checkboxes and click the <b>save profile</b> button to generate the key."
2024-03-01 06:47:36 +00:00
- name : info_activity
type : info
label : Account Inactivity
default : "Activity is defined as actually using your account, including the snatch/grab/seeding of torrents. You are also required to sign-in to the web frontend of Anthelion at least once per 3mo (90 days) (Note, using autodl/ARR does not satisfy this)."
2022-08-08 02:40:11 +00:00
login :
path : api.php
method : get
inputs :
api_key : "{{ .Config.apikey }}"
error :
- selector : ":root:contains(\"Unrecognized key\")"
message :
text : "The API key was not accepted by {{ .Config.sitelink }}."
2022-08-09 16:30:50 +00:00
- selector : ":root:contains(\"No API_KEY provided\")"
message :
text : "You did not enter an API key."
2022-08-08 02:40:11 +00:00
search :
paths :
# docs: https://anthelion.me/forums.php?action=viewthread&threadid=1026
- path : api.php
response :
type : json
inputs :
api_key : "{{ .Config.apikey }}"
o : json
t : movie
q : "{{ .Keywords }}"
tmdb : "{{ .Query.TMDBID }}"
imdb : "{{ .Query.IMDBIDShort }}"
2023-12-25 10:55:42 +00:00
# category filtering is disabled since it seems to rely on the AND operator that prevents some releases to show on search.
# cat: "{{ join .Categories \",\" }}"
2022-08-08 02:40:11 +00:00
limit : 100
offset : 0
rows :
selector : item
count :
selector : response.total
fields :
category :
selector : category
filters :
- name : split
args : [ "," , -1 ]
year :
selector : year
2022-10-02 02:28:22 +00:00
optional : true
2022-08-08 02:40:11 +00:00
_codec :
selector : codec
_container :
selector : container
_media :
selector : media
2022-12-22 18:17:12 +00:00
filters :
- name : replace
args : [ "WEB" , "WEB-DL" ]
2022-08-08 02:40:11 +00:00
_resolution :
selector : resolution
_audioFormat :
selector : audioFormat
_subbing :
selector : subbing
optional : true
_flags :
selector : flags
optional : true
filters :
- name : replace
args : [ "," , " " ]
_language :
selector : language
optional : true
2022-12-22 18:17:12 +00:00
_releaseGroup :
selector : releaseGroup
optional : true
filters :
- name : trim
2023-08-26 21:09:15 +00:00
title_optional :
2022-08-08 02:40:11 +00:00
selector : title
filters :
2023-01-15 18:12:19 +00:00
- name : htmldecode
2022-08-08 02:40:11 +00:00
- name : append
2023-10-16 08:33:15 +00:00
args : " {{ .Result.year }} {{ .Result._codec }} {{ .Result._container }} {{ .Result._media }} {{ .Result._resolution }} {{ .Result._audioFormat }}{{ if .Result._subbing }} Subs{{ else }}{{ end }}{{ if .Result._flags }} {{ .Result._flags }}{{ else }}{{ end }}{{ if .Result._language }} {{ .Result._language }}{{ else }}{{ end }}{{ if and (.Result._releaseGroup) (ne .Result._releaseGroup \"NULL\") }}-{{ .Result._releaseGroup }}{{ else }}{{ end }}"
2022-08-08 02:40:11 +00:00
details :
selector : guid
download :
selector : link
filters :
2023-01-15 18:12:19 +00:00
- name : htmldecode
2022-08-08 02:40:11 +00:00
infohash :
selector : infohash
imdbid :
selector : imdb
tmdbid :
selector : tmdb
2022-09-14 03:07:44 +00:00
genre :
selector : tags
filters :
- name : replace
args : [ "." , "_" ]
description :
text : "{{ .Result.genre }}"
2022-09-18 21:19:40 +00:00
files :
selector : fileCount
2022-08-08 02:40:11 +00:00
seeders :
selector : seeders
leechers :
selector : leechers
grabs :
selector : grabs
date :
# 2022-08-07T20:56:06+0200
selector : pubDate
size :
selector : size
downloadvolumefactor :
text : 1
uploadvolumefactor :
text : 1
minimumratio :
text : 1.0
minimumseedtime :
# 3 day (as seconds = 3 x 24 x 60 x 60)
text : 259200
2023-08-26 21:09:15 +00:00
_filename :
selector : "files[0].name"
filters :
- name : htmldecode
optional : true
title :
text : "{{ if and (eq .Result.files \"1\") (.Result._filename) }}{{ .Result._filename }}{{ else }}{{ .Result.title_optional }}{{ end }}"
2022-08-08 02:40:11 +00:00
# json api