Created a mock Sonarr container for the beta release

This commit is contained in:
2024-12-13 19:39:43 -07:00
parent 89f8a64b51
commit ea4cfeb42d
651 changed files with 134021 additions and 3267 deletions
+23 -17
View File
@@ -20,6 +20,7 @@ caps:
- {id: 265, cat: Movies/HD, desc: "Filmy x265 HEVC"}
- {id: 12, cat: Movies/3D, desc: "Filmy 3D"}
- {id: 530, cat: Movies/SD, desc: "Filmy TS/CAM"}
- {id: 826, cat: Movies/HD, desc: "REMUX / Complete"}
- {id: 9, cat: PC, desc: "Programy"}
- {id: 7, cat: Console, desc: "Konsole"}
- {id: 6, cat: PC/Games, desc: "Gry"}
@@ -44,12 +45,16 @@ caps:
book-search: [q]
settings:
- name: email
- name: cookie
type: text
label: Email
- name: password
type: password
label: Password
label: Cookie
- name: info_cookie
type: info_cookie
- name: useragent
type: text
label: User-Agent
- name: info_useragent
type: info_useragent
- name: multilang
type: checkbox
label: Replace MULTi by another language in release name
@@ -60,16 +65,13 @@ settings:
default: POLISH
options:
POLISH: POLISH
MULTi POLISH: MULTIi POLISH
MULTi POLISH: MULTi POLISH
login:
path: takelogin.php
method: post
# using cookie method because login page has embedded Google reCAPTCHA
method: cookie
inputs:
username: "{{ .Config.email }}"
password: "{{ .Config.password }}"
error:
- selector: table.main:contains("Logowanie nie udane")
cookie: "{{ .Config.cookie }}"
test:
path: index.php
selector: a[href^="/logout.php"]
@@ -84,8 +86,11 @@ search:
search: "{{ if .Keywords }}{{ .Keywords }}{{ else }}%{{ end }}"
# does not support imdbid searching, or have imdb in results
headers:
User-Agent: ["{{ .Config.useragent }}"]
rows:
selector: table[width="100%"] > tbody > tr:has(a[href^="torrent/"])
selector: table[width="100%"] > tbody > tr:has(a[href*="torrent/"])
fields:
category:
@@ -101,6 +106,7 @@ search:
":contains(\"x265 HEVC\")": 265
":contains(\"3D\")": 12
":contains(\"TS/CAM\")": 530
":contains(\"REMUX\")": 826
":contains(\"Programy\")": 9
":contains(\"Konsole\")": 7
":contains(\"Gry\")": 6
@@ -117,9 +123,9 @@ search:
":contains(\"GSM/PDA\")": 31
":contains(\"Inne\")": 32
title_phase1:
selector: a[href^="torrent/"]
selector: a[href*="torrent/"]
title_multilang:
selector: a[href^="torrent/"]
selector: a[href*="torrent/"]
filters:
- name: re_replace
args: ["(?i)\\b(MULTI(?!.*(?:POLISH|ENGLISH|\\bPL\\b)))\\b", "{{ .Config.multilanguage }}"]
@@ -128,10 +134,10 @@ search:
title:
text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase1 }}{{ end }}"
details:
selector: a[href^="torrent/"]
selector: a[href*="torrent/"]
attribute: href
download:
selector: a[href^="torrent/"]
selector: a[href*="torrent/"]
attribute: href
filters:
- name: replace