Created a mock Sonarr container for the beta release
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
id: lat-team-api
|
||||
name: Lat-Team (API)
|
||||
description: "Lat-Team is a SPANISH Private Torrent Tracker for MOVIES / TV"
|
||||
language: es-ES
|
||||
language: es-MX
|
||||
type: private
|
||||
encoding: UTF-8
|
||||
links:
|
||||
@@ -12,19 +12,21 @@ caps:
|
||||
categorymappings:
|
||||
- {id: 1, cat: Movies, desc: "Peliculas"}
|
||||
- {id: 2, cat: TV, desc: "TV Series"}
|
||||
- {id: 3, cat: Audio, desc: "Musica"}
|
||||
- {id: 4, cat: Console, desc: "Juegos"}
|
||||
- {id: 5, cat: TV/Anime, desc: "Anime"}
|
||||
- {id: 8, cat: TV/Foreign, desc: "Telenovelas"}
|
||||
- {id: 9, cat: Audio/Video, desc: "Conciertos"}
|
||||
- {id: 11, cat: Audio/Audiobook, desc: "Audiolibros"}
|
||||
- {id: 12, cat: XXX, desc: "XXX"}
|
||||
- {id: 16, cat: TV/Sport, desc: "Eventos Deportivos"}
|
||||
- {id: 17, cat: PC, desc: "Software & O.S."}
|
||||
- {id: 18, cat: Books, desc: "E-Books"}
|
||||
- {id: 20, cat: TV/Foreign, desc: "Doramas & Turcas"}
|
||||
- {id: 8, cat: TV/Foreign, desc: "Telenovelas"}
|
||||
- {id: 3, cat: Audio, desc: "Musica"}
|
||||
- {id: 9, cat: Audio/Video, desc: "Conciertos"}
|
||||
- {id: 16, cat: TV/Sport, desc: "Eventos Deportivos"}
|
||||
- {id: 22, cat: TV/Other, desc: "Playlist_Collection"}
|
||||
- {id: 17, cat: PC, desc: "Software & O.S."}
|
||||
- {id: 12, cat: XXX, desc: "XXX"}
|
||||
- {id: 18, cat: Books/EBook, desc: "E-Books"}
|
||||
- {id: 11, cat: Audio/Audiobook, desc: "Audiolibros"}
|
||||
- {id: 4, cat: Console, desc: "Juegos"}
|
||||
- {id: 24, cat: Other, desc: "Cursos"}
|
||||
- {id: 29, cat: Books/Mags, desc: "Revistas & Periódicos"}
|
||||
- {id: 30, cat: Books/Comics, desc: "Comics & Manga"}
|
||||
|
||||
modes:
|
||||
search: [q]
|
||||
@@ -40,11 +42,15 @@ settings:
|
||||
- name: info_key
|
||||
type: info
|
||||
label: About your API key
|
||||
default: "Find or Generate a new API Token by accessing your <a href=\"https://lat-team.com/\" target=\"_blank\">Lat-Team</a> account <i>My Security</i> page and clicking on the <b>API Token</b> tab."
|
||||
default: "Find or Generate a new API Token by accessing your <a href=\"https://lat-team.com/\" target=\"_blank\">Lat-Team</a> account <i>My Settings</i> page and clicking on the <b>API Key</b> tab."
|
||||
- name: freeleech
|
||||
type: checkbox
|
||||
label: Search freeleech only
|
||||
default: false
|
||||
- name: single_file_release_use_filename
|
||||
type: checkbox
|
||||
label: Use filename as title for single file releases
|
||||
default: true
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
@@ -70,11 +76,12 @@ login:
|
||||
- selector: a[href*="/login"]
|
||||
message:
|
||||
text: "The API key was not accepted by {{ .Config.sitelink }}."
|
||||
- selector: :root:contains("Account is Banned")
|
||||
|
||||
search:
|
||||
paths:
|
||||
# https://github.com/HDInnovations/UNIT3D-Community-Edition/wiki/Torrent-API-(UNIT3D-v7.0.0)
|
||||
# https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/master/app/Http/Controllers/API/TorrentController.php#L349
|
||||
# https://github.com/HDInnovations/UNIT3D-Community-Edition/wiki/Torrent-API-(UNIT3D-v8.x.x)
|
||||
# https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/master/app/Http/Controllers/API/TorrentController.php#L476
|
||||
- path: "/api/torrents/filter"
|
||||
response:
|
||||
type: json
|
||||
@@ -91,7 +98,7 @@ search:
|
||||
imdbId: "{{ .Query.IMDBIDShort }}"
|
||||
tmdbId: "{{ .Query.TMDBID }}"
|
||||
tvdbId: "{{ .Query.TVDBID }}"
|
||||
free[]: "{{ if .Config.freeleech }}100{{ else }}{{ end }}"
|
||||
"free[]": "{{ if .Config.freeleech }}100{{ else }}{{ end }}"
|
||||
sortField: "{{ .Config.sort }}"
|
||||
sortDirection: "{{ .Config.type }}"
|
||||
perPage: 100
|
||||
@@ -107,20 +114,20 @@ search:
|
||||
fields:
|
||||
category:
|
||||
selector: category_id
|
||||
title_optional:
|
||||
selector: name
|
||||
title_filename:
|
||||
selector: "files[0].name"
|
||||
optional: true
|
||||
files:
|
||||
selector: num_file
|
||||
title_phase1:
|
||||
text: "{{ if and (.Config.single_file_release_use_filename) (eq .Result.files \"1\") (.Result.title_filename) }}{{ .Result.title_filename }}{{ else }}{{ .Result.title_optional }}{{ end }}"
|
||||
title_vose:
|
||||
selector: name:contains(VOSE)
|
||||
optional: true
|
||||
filters:
|
||||
- name: append
|
||||
args: " ENGLiSH"
|
||||
title_notvose:
|
||||
selector: name:not(:contains(VOSE))
|
||||
optional: true
|
||||
filters:
|
||||
- name: append
|
||||
args: " SPANiSH"
|
||||
title:
|
||||
text: "{{ if .Result.title_vose }}{{ .Result.title_vose }}{{ else }}{{ .Result.title_notvose }}{{ end }}"
|
||||
text: "{{ .Result.title_phase1 }}{{ if .Result.title_vose }} ENGLiSH{{ else }} SPANiSH{{ end }}"
|
||||
details:
|
||||
selector: details_link
|
||||
download:
|
||||
@@ -141,8 +148,6 @@ search:
|
||||
genre:
|
||||
selector: meta.genres
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["(?i)^None$", ""]
|
||||
- name: re_replace
|
||||
args: ["(?i)(Science Fiction)", "Science_Fiction"]
|
||||
- name: re_replace
|
||||
@@ -151,8 +156,6 @@ search:
|
||||
args: [" & ", "_&_"]
|
||||
description:
|
||||
text: "{{ .Result.genre }}"
|
||||
files:
|
||||
selector: num_file
|
||||
seeders:
|
||||
selector: seeders
|
||||
leechers:
|
||||
@@ -169,7 +172,12 @@ search:
|
||||
args: "MM/dd/yyyy HH:mm:ss zzz"
|
||||
size:
|
||||
selector: size
|
||||
downloadvolumefactor:
|
||||
_featured:
|
||||
selector: featured
|
||||
case:
|
||||
False: "{{ .False }}"
|
||||
True: "{{ .True }}"
|
||||
downloadvolumefactor_freeleech:
|
||||
# api returns 0%, 25%, 50%, 75%, 100%
|
||||
selector: freeleech
|
||||
case:
|
||||
@@ -179,16 +187,20 @@ search:
|
||||
75%: 0.25
|
||||
100%: 0 # freeleech
|
||||
"*": 0 # catch errors
|
||||
uploadvolumefactor:
|
||||
# api returns 0=false, 1=true
|
||||
downloadvolumefactor:
|
||||
text: "{{ if .Result._featured }}0{{ else }}{{ .Result.downloadvolumefactor_freeleech }}{{ end }}"
|
||||
uploadvolumefactor_double_upload:
|
||||
# api returns False, True
|
||||
selector: double_upload
|
||||
case:
|
||||
0: 1 # normal
|
||||
1: 2 # double
|
||||
# global MR is 0.4 but torrents must be seeded for 2 days regardless of ratio
|
||||
False: 1 # normal
|
||||
True: 2 # double
|
||||
uploadvolumefactor:
|
||||
text: "{{ if .Result._featured }}2{{ else }}{{ .Result.uploadvolumefactor_double_upload }}{{ end }}"
|
||||
# global MR is 0.25 but torrents must be seeded for 3 days regardless of ratio
|
||||
# minimumratio:
|
||||
# text: 0.4
|
||||
# text: 0.25
|
||||
minimumseedtime:
|
||||
# 2 days (as seconds = 2 x 24 x 60 x 60)
|
||||
text: 172800
|
||||
# json UNIT3D 6.5.0
|
||||
# 3 days (as seconds = 3 x 24 x 60 x 60)
|
||||
text: 259200
|
||||
# json UNIT3D 8.2.0 (custom)
|
||||
|
||||
Reference in New Issue
Block a user