mirror of
https://github.com/Jackett/Jackett
synced 2024-12-28 02:39:26 +00:00
zetorrents: refining title. #7574
This commit is contained in:
parent
57a5959751
commit
1c63e9444d
1 changed files with 23 additions and 0 deletions
|
@ -36,8 +36,31 @@
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
text: 1
|
text: 1
|
||||||
|
site_date:
|
||||||
|
selector: a[href^="/torrent/"]
|
||||||
|
filters:
|
||||||
|
# date is at the end of the title, so we get it and name it site_date
|
||||||
|
- name: regexp
|
||||||
|
args: "(\\d{4})$"
|
||||||
title:
|
title:
|
||||||
selector: a[href^="/torrent/"]
|
selector: a[href^="/torrent/"]
|
||||||
|
attribute: title
|
||||||
|
filters:
|
||||||
|
- name: replace
|
||||||
|
args: [" en Torrent", ""]
|
||||||
|
- name: replace
|
||||||
|
args: [" FRENCH", " {{ .Result.site_date }} FRENCH"]
|
||||||
|
- name: replace
|
||||||
|
args: ["MULTI", "{{ .Result.site_date }} MULTI"]
|
||||||
|
- name: replace
|
||||||
|
args: ["TRUEFRENCH", "{{ .Result.site_date }} TRUEFRENCH"]
|
||||||
|
- name: replace
|
||||||
|
args: ["VOSTFR", "{{ .Result.site_date }} VOSTFR"]
|
||||||
|
# and we delete the year at the end
|
||||||
|
- name: re_replace
|
||||||
|
args: ["(\\w+)$", ""]
|
||||||
|
- name: replace
|
||||||
|
args: ["WEBRIP", "WEBDL"]
|
||||||
details:
|
details:
|
||||||
selector: a[href^="/torrent/"]
|
selector: a[href^="/torrent/"]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
|
Loading…
Reference in a new issue