mirror of
https://github.com/Jackett/Jackett
synced 2025-02-22 06:10:49 +00:00
torrentgalaxy: prevent empty titles. resolves #8585
This commit is contained in:
parent
dacc92e951
commit
4014526f33
1 changed files with 15 additions and 1 deletions
|
@ -113,9 +113,23 @@ search:
|
|||
selector: div[class="tgxtablerow"]
|
||||
|
||||
fields:
|
||||
title:
|
||||
title_full:
|
||||
selector: div a[href^="/torrent/"]
|
||||
attribute: title
|
||||
# this title text is abbreviated but may be needed when quotes in full title cause empty title #8585
|
||||
title_text:
|
||||
selector: div a[href^="/torrent/"]
|
||||
# fall back title, use href and clean it up
|
||||
title_href:
|
||||
selector: div a[href^="/torrent/"]
|
||||
attribute: href
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["-quot-", " "]
|
||||
- name: re_replace
|
||||
args: ["-", " "]
|
||||
title:
|
||||
text: "{{ if or .Result.title_full .Result.title_text }}{{ or .Result.title_full .Result.title_text }}{{ else }}{{ .Result.href }}{{ end }}"
|
||||
category:
|
||||
selector: div a[href^="/torrents.php?cat="]
|
||||
attribute: href
|
||||
|
|
Loading…
Reference in a new issue