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