mirror of https://github.com/Jackett/Jackett
assorted yml: optional title tidy up
This commit is contained in:
parent
e689e94fc2
commit
bffb505748
|
@ -122,11 +122,10 @@ search:
|
|||
args: category
|
||||
title_default:
|
||||
selector: a[href*="/details.php?id="]
|
||||
title_optional:
|
||||
optional: true
|
||||
selector: div.tooltip-content > div
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
selector: div.tooltip-content > div
|
||||
optional: true
|
||||
default: "{{ .Result.title_default }}"
|
||||
details:
|
||||
selector: a[href*="/details.php?id="]
|
||||
attribute: href
|
||||
|
|
|
@ -135,13 +135,12 @@ search:
|
|||
title_default:
|
||||
# can be abbreviated
|
||||
selector: a[href^="details.php?id="]
|
||||
title_optional:
|
||||
title:
|
||||
# usually full length
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: title
|
||||
optional: true
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
default: "{{ .Result.title_default }}"
|
||||
details:
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: href
|
||||
|
|
|
@ -87,12 +87,11 @@ search:
|
|||
args: "/invalid.torrent"
|
||||
title_default:
|
||||
selector: a[href^="details.php?id="]
|
||||
title_optional:
|
||||
optional: true
|
||||
title:
|
||||
selector: a[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
|
||||
|
|
|
@ -154,12 +154,11 @@ search:
|
|||
title_default:
|
||||
# is often abbreviated
|
||||
selector: a[href*="torrent-details-"]
|
||||
title_optional:
|
||||
title:
|
||||
# usually longer than details title
|
||||
selector: div[id^="port-content-"] div
|
||||
optional: true
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
default: "{{ .Result.title_default }}"
|
||||
details:
|
||||
selector: a[href*="torrent-details-"]
|
||||
attribute: href
|
||||
|
|
|
@ -111,15 +111,14 @@ search:
|
|||
title_default:
|
||||
selector: a[href^="details.php?id="] > b
|
||||
attribute: title
|
||||
title_optional:
|
||||
title:
|
||||
selector: a[href^="details.php?id="] > b[title*="Torrent neve:"]
|
||||
optional: true
|
||||
attribute: title
|
||||
optional: true
|
||||
default: "{{ .Result.title_default }}"
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "Torrent neve: (.*?)<"
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
_descr:
|
||||
selector: a[href^="details.php?id="] > b
|
||||
attribute: title
|
||||
|
|
|
@ -111,11 +111,12 @@ search:
|
|||
title_default:
|
||||
# is often abbreviated
|
||||
selector: a[href^="details.php?id="]
|
||||
title_optional:
|
||||
title:
|
||||
# usually longer than details title
|
||||
selector: a[href*="download.php?id="]:has(img[src="../pic/yes.png"])
|
||||
attribute: title
|
||||
optional: true
|
||||
default: "{{ .Result.title_default }}"
|
||||
filters:
|
||||
- name: replace
|
||||
args: ["Download torrent: ", ""]
|
||||
|
@ -123,8 +124,6 @@ search:
|
|||
args: ["Torrent letöltése: ", ""]
|
||||
- name: replace
|
||||
args: ["Downloadeaza torentul: ", ""]
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
details:
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: href
|
||||
|
|
|
@ -159,12 +159,11 @@ search:
|
|||
fields:
|
||||
category:
|
||||
text: Other
|
||||
title_default:
|
||||
# fallback title (to prevent abend if optional is not found)
|
||||
text: "title not found"
|
||||
title_optional:
|
||||
optional: true
|
||||
title:
|
||||
selector: td.doubleindent, td.singleindent a[href^="/index.php?showtopic="]
|
||||
optional: true
|
||||
# fallback title (to prevent abend if optional is not found)
|
||||
default: "title not found"
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["(?i)^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
|
||||
|
@ -198,8 +197,6 @@ search:
|
|||
args: ["(?i)^Al-Jazeera (.*)", "{{ if .Config.dropbbc }}{{ else }}Al-Jazeera {{ end }}$1"]
|
||||
- name: append
|
||||
args: "{{ if .Config.stripS01E01 }}{{ else }} S01E01{{ end }}"
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
details:
|
||||
optional: true
|
||||
selector: td.singleindent a[href^="/index.php?showtopic="]
|
||||
|
|
|
@ -159,12 +159,11 @@ search:
|
|||
fields:
|
||||
category:
|
||||
text: Other
|
||||
title_default:
|
||||
# fallback title (to prevent abend if optional is not found)
|
||||
text: "title not found"
|
||||
title_optional:
|
||||
optional: true
|
||||
title:
|
||||
selector: td.doubleindent, td.singleindent a[href^="/index.php?showtopic="]
|
||||
optional: true
|
||||
# fallback title (to prevent abend if optional is not found)
|
||||
default: "title not found"
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["(?i)^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
|
||||
|
@ -198,8 +197,6 @@ search:
|
|||
args: ["(?i)^Al-Jazeera (.*)", "{{ if .Config.dropbbc }}{{ else }}Al-Jazeera {{ end }}$1"]
|
||||
- name: append
|
||||
args: "{{ if .Config.stripS01E01 }}{{ else }} S01E01{{ end }}"
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
details:
|
||||
optional: true
|
||||
selector: td.singleindent a[href^="/index.php?showtopic="]
|
||||
|
|
|
@ -148,14 +148,13 @@ search:
|
|||
args: ["=", -1]
|
||||
title_default:
|
||||
selector: td:nth-child(2) a:last-of-type
|
||||
title_optional:
|
||||
title:
|
||||
selector: td:nth-child(2) a:last-of-type:contains("[PuyaSubs!] ")
|
||||
optional: true
|
||||
default: "{{ .Result.title_default }}"
|
||||
filters:
|
||||
- name: append
|
||||
args: " Spanish"
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
details:
|
||||
selector: td:nth-child(2) a:last-of-type
|
||||
attribute: href
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -135,18 +135,17 @@ search:
|
|||
title_default:
|
||||
# often abbreviated
|
||||
selector: td:nth-child(2) a
|
||||
title_optional:
|
||||
title:
|
||||
# usually full length
|
||||
selector: td a[title]
|
||||
attribute: title
|
||||
optional: true
|
||||
default: "{{ .Result.title_default }}"
|
||||
filters:
|
||||
- name: replace
|
||||
args: ["View details: ", ""]
|
||||
- name: replace
|
||||
args: ["Преглед на детайли: ", ""]
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
details:
|
||||
selector: td a[href*="id="]
|
||||
attribute: href
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -113,13 +113,12 @@ search:
|
|||
title_default:
|
||||
# can be abbreviated
|
||||
selector: a[href^="details.php?id="]
|
||||
title_optional:
|
||||
title:
|
||||
# usually full length
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: title
|
||||
optional: true
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
default: "{{ .Result.title_default }}"
|
||||
details:
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: href
|
||||
|
|
|
@ -122,12 +122,11 @@ search:
|
|||
title_default:
|
||||
# is often abbreviated
|
||||
selector: a[href*="torrent-details-"]
|
||||
title_optional:
|
||||
title:
|
||||
# usually longer than details title
|
||||
selector: div[id^="port-content-"] div
|
||||
optional: true
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
default: "{{ .Result.title_default }}"
|
||||
details:
|
||||
selector: a[href*="torrent-details-"]
|
||||
attribute: href
|
||||
|
|
|
@ -118,11 +118,10 @@ search:
|
|||
fields:
|
||||
title_default:
|
||||
selector: td:nth-child(2) a
|
||||
title_optional:
|
||||
optional: true
|
||||
selector: div.tooltip-content > div
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
selector: div.tooltip-content > div
|
||||
optional: true
|
||||
default: "{{ .Result.title_default }}"
|
||||
category:
|
||||
selector: a[href*="/browse.php?category="]
|
||||
attribute: href
|
||||
|
|
|
@ -141,12 +141,11 @@ search:
|
|||
i[class="fa fa-book"]: ebook
|
||||
title_default:
|
||||
selector: td:nth-child(1) a
|
||||
title_optional:
|
||||
title_phase1:
|
||||
selector: td:nth-child(1) a[title]
|
||||
attribute: title
|
||||
optional: true
|
||||
title_phase1:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
default: "{{ .Result.title_default }}"
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["(?i)\\b(FRENCH|MULTI|TRUEFRENCH|VOSTFR|SUBFRENCH)\\b(.+?)(\\b(19|20\\d{2})\\b)$", "$3 $1$2"]
|
||||
|
|
|
@ -118,13 +118,12 @@ search:
|
|||
title_default:
|
||||
# can be abbreviated
|
||||
selector: a[href^="javascript:torrent"] b
|
||||
title_optional:
|
||||
title:
|
||||
# usually full length
|
||||
selector: a[href^="javascript:torrent"]
|
||||
attribute: title
|
||||
optional: true
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
default: "{{ .Result.title_default }}"
|
||||
_id:
|
||||
selector: a[href^="javascript:torrent"]
|
||||
attribute: href
|
||||
|
|
|
@ -95,11 +95,10 @@ search:
|
|||
filters:
|
||||
- name: append
|
||||
args: " ({{ .Result.year }})"
|
||||
title_optional:
|
||||
title:
|
||||
selector: ..title_long
|
||||
optional: true
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
default: "{{ .Result.title_default }}"
|
||||
filters:
|
||||
- name: replace
|
||||
args: [":", ""]
|
||||
|
|
Loading…
Reference in New Issue