mirror of
https://github.com/Jackett/Jackett
synced 2025-02-22 06:10:49 +00:00
1337x: fix titles. resolves #8586
This commit is contained in:
parent
713cb42ae6
commit
d26e7af296
1 changed files with 8 additions and 1 deletions
|
@ -168,13 +168,20 @@ search:
|
|||
selector: tr:has(a[href^="/torrent/"])
|
||||
|
||||
fields:
|
||||
title:
|
||||
title_text:
|
||||
# the movies, tv and music pages abbreviate the title
|
||||
selector: td[class^="coll-1"] a[href^="/torrent/"]
|
||||
title_href:
|
||||
# the movies, tv and music pages abbreviate the title so we process the href instead. #8137
|
||||
selector: td[class^="coll-1"] a[href^="/torrent/"]
|
||||
attribute: href
|
||||
filters:
|
||||
- name: split
|
||||
args: ["/", 3]
|
||||
title:
|
||||
# title_href can be empty so use the title_text instead #8586
|
||||
text: "{{ if .Result.title_href }}{{ .Result.title_href }}{{ else }}{{ .Result.title_text }}{{ end }}"
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["(-+)", " "]
|
||||
- name: replace
|
||||
|
|
Loading…
Reference in a new issue