zamundanet: add config info aboit LIST view. resolves #6627

also add config sort options
switch to https
correct catalog selector
clean up titles
This commit is contained in:
Garfield69
2019-12-17 07:29:54 +13:00
parent 39b5a9df76
commit ea340200f0

View File

@@ -6,6 +6,9 @@
type: private type: private
encoding: windows-1251 encoding: windows-1251
links: links:
- https://zamunda.net/
- https://zamunda.ch/
legacylinks:
- http://zamunda.net/ - http://zamunda.net/
- http://zamunda.ch/ - http://zamunda.ch/
@@ -58,6 +61,34 @@
tv-search: [q, season, ep] tv-search: [q, season, ep]
movie-search: [q] movie-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: info_results
type: info
label: "Search results"
default: "This Indexer supports search results only from the <b>LIST</b> view.<br><li>Access the web site, bring up the torrent search page and click on the <b>LIST</b> icon setting (located to the top right of the search results table).</li><br>The alternate <i>GRID</i> view is not supported."
- name: sort
type: select
label: Sort requested from site
default: "6"
options:
"6": "created"
"9": "seeders"
"7": "size"
"2": "title"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login: login:
path: takelogin.php path: takelogin.php
method: post method: post
@@ -73,23 +104,28 @@
paths: paths:
- path: bananas - path: bananas
inputs: inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Query.Keywords }}" search: "{{ .Keywords }}"
incldead: 1 incldead: 1
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows: rows:
selector: .responsetop > tbody > tr:has(td.td_newborder) selector: .responsetop > tbody > tr:has(td.td_newborder)
fields: fields:
title: title:
selector: a:has(i.fa-download) selector: a:has(i.fa-download)
attribute: href attribute: href
filters: filters:
- name: urldecode
- name: re_replace - name: re_replace
args: ["^(.*?)download\\.php\\/[0-9]{1,10}\\/|\\.torrent(?=[^.]*$)", ""] args: ["^(.*?)download\\.php\\/[0-9]{1,10}\\/|\\.torrent(?=[^.]*$)", ""]
details: details:
selector: td:nth-child(2) > a:nth-child(1) selector: td:nth-child(2) > a:nth-child(1)
attribute: href attribute: href
category: category:
selector: td:nth-child(1) > a selector: a[href^="list?cat="]
attribute: href attribute: href
filters: filters:
- name: querystring - name: querystring
@@ -120,6 +156,6 @@
- name: regexp - name: regexp
args: src=\\'([^\s\\]+) args: src=\\'([^\s\\]+)
downloadvolumefactor: downloadvolumefactor:
text: "0" text: 0
uploadvolumefactor: uploadvolumefactor:
text: "1" text: 1