mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
zetorrents: refining title. #7574
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user