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

View File

@@ -15,7 +15,9 @@
caps: caps:
categorymappings: 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: modes:
search: [q] search: [q]
@@ -50,7 +52,7 @@
fields: fields:
category: category:
text: 1 text: other
site_date: site_date:
selector: a selector: a
filters: filters: