cpasbien: does not suppoort categories.

default to Other.
This commit is contained in:
Garfield69
2019-12-15 08:50:57 +13:00
parent 8e017e7398
commit 8f2a5f55ff
2 changed files with 14 additions and 6 deletions

View File

@@ -43,10 +43,12 @@
categorymappings:
- {id: films, cat: Movies, desc: "Movies"}
- {id: series, cat: TV, desc: "TV"}
- {id: other, cat: Other, desc: "Other"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
settings: []
@@ -57,10 +59,14 @@
search:
paths:
# https://vww.cpasbien-fr.fr/index.php?do=search&subaction=search&story=dickinson%20s01e10
- path: "{{if .Keywords}}index.php?do=search&subaction=search&story={{.Keywords}}{{else}}{{end}}"
- path: "{{ if .Keywords }}index.php?do=search&subaction=search&story={{ .Keywords }}{{else}}{{end}}"
rows:
selector: div#gauche > table > tbody > tr:has(a)
fields:
category:
text: other
site_date:
selector: a
filters:
@@ -91,7 +97,7 @@
size:
selector: div.poid
date:
text: "now"
text: now
seeders:
text: 0
seeders:
@@ -103,6 +109,6 @@
selector: div.down
optional: true
downloadvolumefactor:
text: "0"
text: 0
uploadvolumefactor:
text: "1"
text: 1

View File

@@ -15,7 +15,9 @@
caps:
categorymappings:
- {id: 1, cat: Other, desc: "Other"}
- {id: films, cat: Movies, desc: "Movies"}
- {id: series, cat: TV, desc: "TV"}
- {id: other, cat: Other, desc: "Other"}
modes:
search: [q]
@@ -50,7 +52,7 @@
fields:
category:
text: 1
text: other
site_date:
selector: a
filters: