mirror of https://github.com/Jackett/Jackett
epizod: site change (#10505)
Co-authored-by: garfield69 <garfield69@outlook.com>
This commit is contained in:
parent
1f771d89e0
commit
de9821f039
|
@ -58,27 +58,42 @@ search:
|
|||
s: "{{ .Keywords }}"
|
||||
|
||||
rows:
|
||||
selector: article:not(:has(a[title="DMCA"]))
|
||||
selector: li[class^="ilovewp-post"]:not(:has(a[title="DMCA"]))
|
||||
|
||||
fields:
|
||||
category:
|
||||
text: other
|
||||
category|noappend:
|
||||
category1:
|
||||
selector: a[href*="/category/"]
|
||||
attribute: href
|
||||
optional: true
|
||||
filters:
|
||||
- name: split
|
||||
args: ["/", 4]
|
||||
category2:
|
||||
selector: li[class^="ilovewp-post"]
|
||||
attribute: class
|
||||
optional: true
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "category-(.+?) "
|
||||
category3:
|
||||
selector: img[src*="img"]
|
||||
attribute: src
|
||||
optional: true
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "img/(.+?)_"
|
||||
category:
|
||||
text: "{{ if or .Result.category1 .Result.category2 .Result.category3 }}{{ or .Result.category1 .Result.category2 .Result.category3 }}{{ else }}other{{ end }}"
|
||||
sizecat:
|
||||
text: "{{ if or .Result.category1 .Result.category2 .Result.category3 }}{{ or .Result.category1 .Result.category2 .Result.category3 }}{{ else }}other{{ end }}"
|
||||
site_date:
|
||||
selector: div.post-cover > a
|
||||
attribute: title
|
||||
selector: time > a
|
||||
filters:
|
||||
# year can be at the end of the title, so we get it and name it site_date
|
||||
- name: regexp
|
||||
args: "(19|20\\d{2})$"
|
||||
title_phase1:
|
||||
selector: div.post-cover > a
|
||||
selector: time > a
|
||||
attribute: title
|
||||
filters:
|
||||
# now we put the date at the right place according scene naming rules using .Result.site_date
|
||||
|
@ -112,10 +127,10 @@ search:
|
|||
title:
|
||||
text: "{{ if .Config.vostfr }}{{ .Result.title_vostfr }}{{ else }}{{ .Result.title_phase2 }}{{ end }}"
|
||||
details:
|
||||
selector: div.post-cover > a
|
||||
selector: h2.title-post > a
|
||||
attribute: href
|
||||
download:
|
||||
selector: div.post-cover > a
|
||||
selector: h2.title-post > a
|
||||
attribute: href
|
||||
poster:
|
||||
selector: img[data-lazy-src]
|
||||
|
@ -128,17 +143,8 @@ search:
|
|||
args: ["T", " "]
|
||||
- name: dateparse
|
||||
args: "2006-01-02 15:04:05-07:00"
|
||||
cat:
|
||||
selector: a[href*="/category/"]
|
||||
attribute: href
|
||||
optional: true
|
||||
filters:
|
||||
- name: split
|
||||
args: ["/", 4]
|
||||
cat:
|
||||
text: "{{ if .Result.cat }}{{ .Result.cat }}{{ else }}other{{ end }}"
|
||||
size:
|
||||
text: "{{ if eq .Result.cat \"ebook\" }}1 MB{{ else }}{{ end }}{{ if eq .Result.cat \"musique\" }}128 MB{{ else }}{{ end }}{{ if or (eq .Result.cat \"series\") (eq .Result.cat \"other\") }}512 MB{{ else }}{{ end }}{{ if eq .Result.cat \"films\" }}2 GB{{ else }}{{ end }}"
|
||||
text: "{{ if eq .Result.sizecat \"ebook\" }}1 MB{{ else }}{{ end }}{{ if eq .Result.sizecat \"musique\" }}128 MB{{ else }}{{ end }}{{ if or (eq .Result.sizecat \"series\") (eq .Result.sizecat \"other\") }}512 MB{{ else }}{{ end }}{{ if eq .Result.sizecat \"films\" }}2 GB{{ else }}{{ end }}"
|
||||
seeders:
|
||||
text: 1
|
||||
leechers:
|
||||
|
|
Loading…
Reference in New Issue