assorted nexusphp: optional title tidy up

This commit is contained in:
Garfield69 2023-03-21 06:58:33 +13:00
parent 8f24aceafb
commit 980a91cf99
46 changed files with 139 additions and 185 deletions

View File

@ -99,12 +99,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -141,12 +141,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -114,12 +114,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -98,12 +98,11 @@ search:
fields:
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
category:
selector: a[href^="?cat="]
attribute: href

View File

@ -98,12 +98,11 @@ search:
fields:
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
category:
selector: a[href^="?cat="]
attribute: href

View File

@ -112,12 +112,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -116,12 +116,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -111,12 +111,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -109,12 +109,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -116,12 +116,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -108,12 +108,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -83,12 +83,11 @@ search:
fields:
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
category:
selector: a[href^="?cat="]
attribute: href

View File

@ -109,12 +109,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -119,12 +119,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -102,12 +102,11 @@ search:
fields:
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
category:
selector: a[href^="?cat="]
attribute: href

View File

@ -128,12 +128,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -97,12 +97,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -119,12 +119,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -86,12 +86,11 @@ search:
fields:
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
category:
selector: a[href^="?cat="]
attribute: href

View File

@ -139,12 +139,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -96,12 +96,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -127,12 +127,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -119,12 +119,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -118,12 +118,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -113,13 +113,12 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title_raw:
selector: a[title][href^="details.php?id="]
attribute: title
title_raw:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
# note: final title processing is at the bottom after descrptions is fetched.
optional: true
default: "{{ .Result.title_default }}"
# note: final title processing is at the bottom after descriptions is fetched.
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -95,12 +95,11 @@ search:
args: "cat_(.+?)$"
title_default:
selector: a[href^="details_"] > b
title_optional:
optional: true
title:
selector: a[title][href^="details_"]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details_"]
attribute: href

View File

@ -143,13 +143,12 @@ search:
title_default:
# shortened for long release names
selector: a[href^="details.php?id="] > b
title_optional:
title:
# not available if IMDB tooltips are turned on
optional: true
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
category:
selector: a[href^="?cat="]
attribute: href

View File

@ -146,13 +146,12 @@ search:
title_default:
# shortened for long release names
selector: a[href^="details.php?id="] > b
title_optional:
title:
# not available if IMDB tooltips are turned on
optional: true
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
category:
selector: a[href^="?cat="]
attribute: href

View File

@ -111,12 +111,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -121,12 +121,11 @@ search:
td:not([title]): 9
title_default:
selector: a[href*="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href*="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href*="details.php?id="]
attribute: href

View File

@ -120,12 +120,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -75,12 +75,11 @@ search:
fields:
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
category:
selector: a[href^="?cat="]
attribute: href

View File

@ -112,12 +112,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -103,12 +103,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="], a[href^="detailsgame.php?"]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="], a[title][href^="detailsgame.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="], a[href^="detailsgame.php?"]
attribute: href

View File

@ -102,12 +102,11 @@ search:
args: cat
title_default:
selector: table.torrentname td a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -109,12 +109,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -132,12 +132,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -96,12 +96,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -49,12 +49,11 @@ search:
text: 1
title_default:
selector: a[href^="/forum.php?mod=viewthread&tid="]
title_optional:
optional: true
title:
selector: a[title][href^="/forum.php?mod=viewthread&tid="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="/forum.php?mod=viewthread&tid="]
attribute: href

View File

@ -97,12 +97,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -100,12 +100,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -104,12 +104,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
filters:
- name: re_replace
args: ["^\\[([^\\]]+)\\]\\[([^\\]]+)\\]\\[([^\\]]+)\\](.*)$", "$3 [$1][$2]$4"]

View File

@ -112,12 +112,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -116,12 +116,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -108,12 +108,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href

View File

@ -116,12 +116,11 @@ search:
args: cat
title_default:
selector: a[href^="details.php?id="]
title_optional:
optional: true
title:
selector: a[title][href^="details.php?id="]
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
optional: true
default: "{{ .Result.title_default }}"
details:
selector: a[href^="details.php?id="]
attribute: href