assorted: conform to yaml standards by avoiding duplicate keys #11917

This commit is contained in:
Garfield69
2021-10-22 05:49:46 +13:00
parent cb6d732347
commit 18862155bc
38 changed files with 95 additions and 86 deletions

View File

@@ -110,7 +110,7 @@ search:
download:
selector: a[href^="download.php?id="]
attribute: href
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
date_elapsed:

View File

@@ -113,7 +113,7 @@ search:
download:
selector: a[href^="download.php?id="]
attribute: href
imdb:
imdbid:
selector: div.imdb_100 > a
attribute: href
date_elapsed:

View File

@@ -143,7 +143,7 @@ search:
filters:
- name: regexp
args: "src=(.*?) width="
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
files:

View File

@@ -104,7 +104,7 @@ search:
download:
selector: td a[href^="download.php"]
attribute: href
imdb:
imdbid:
selector: a[href^="index.php?page=torrent-details"]
attribute: onmouseover
filters:

View File

@@ -122,7 +122,7 @@ search:
selector: td:nth-last-child(2)
grabs:
selector: td:nth-last-child(1)
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
tmdbid:

View File

@@ -115,7 +115,7 @@ search:
download:
selector: a[href^="download.php?id="]
attribute: href
imdb:
imdbid:
selector: div.imdb_100 > a
attribute: href
date_elapsed:

View File

@@ -96,7 +96,7 @@ search:
selector: a[href$="/peers"] span.text-red
grabs:
selector: a[href$="/history"]
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
tmdbid:

View File

@@ -97,7 +97,7 @@ search:
poster:
selector: img[alt="Cover"]
attribute: src
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
files:

View File

@@ -202,15 +202,13 @@ search:
poster:
selector: a[rel="fancybox"]
attribute: href
imdb:
imdbid:
# a href="http://tracker.btnext.com/data/torrents/imdb/tt0249677.jpg"
selector: a[href*="/imdb/tt"]
attribute: href
filters:
- name: regexp
args: "imdb/(.+?).jpg"
- name: prepend
args: "https://www.imdb.com/title/"
args: tt(\d+)
downloadvolumefactor:
case:
"img[title=\"FREE!\"]": 0

View File

@@ -112,7 +112,7 @@ search:
details:
selector: a[id][href^="details.php?"]
attribute: href
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
poster:

View File

@@ -129,7 +129,7 @@ search:
filters:
- name: replace
args: ["/details", "/download"]
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
poster:

View File

@@ -112,7 +112,7 @@ search:
download:
selector: a[href^="download.php/"]
attribute: href
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
files:

View File

@@ -121,7 +121,7 @@ search:
download:
selector: a[href^="download.php?id="]
attribute: href
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
date_elapsed:

View File

@@ -132,7 +132,7 @@ search:
selector: td:nth-last-child(2)
grabs:
selector: td:nth-last-child(1)
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
tmdbid:

View File

@@ -75,7 +75,7 @@ search:
download:
selector: a[href*="download.php?id="]
attribute: href
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
date:

View File

@@ -144,7 +144,7 @@ search:
filters:
- name: regexp
args: "src=(.+?) "
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
description:

View File

@@ -126,7 +126,7 @@ search:
filters:
- name: regexp
args: src='(.*?)'
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
description:

View File

@@ -127,7 +127,7 @@ search:
download:
selector: a[href^="download.php?id="]
attribute: href
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
date_elapsed:

View File

@@ -159,16 +159,16 @@ search:
args: " +01:00" # CET
- name: dateparse
args: "2 January 2006 15:04:05 -07:00"
seeders:
text: 0
seeders:
seeders_optional:
optional: true
selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) font b
leechers:
text: 0
leechers:
seeders:
text: "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}"
leechers_optional:
optional: true
selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) font font b
leechers:
text: "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}"
downloadvolumefactor:
case:
img[src="pic/freedlfsu.gif"]: 0

View File

@@ -130,14 +130,14 @@ search:
poster:
selector: .imagen img
attribute: data-src
size:
text: "512 MB"
size:
size_optional:
selector: .voto1
optional: true
filters:
- name: replace
args: ["s", ""]
size:
text: "{{ if .Result.size_optional }}{{ .Result.size_optional }}{{ else }}512 MB{{ end }}"
date:
text: now
seeders:

View File

@@ -150,7 +150,7 @@ search:
selector: td:nth-last-child(2)
grabs:
selector: td:nth-last-child(1)
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
tmdbid:

View File

@@ -62,7 +62,7 @@ search:
download:
selector: a[href^="magnet:?xt="]
attribute: href
date:
date_day:
# Y-day-2020 (seriously!?!, like there's a Y-day-2019 ?)
# Today-22:03
selector: td:nth-last-of-type(5):contains("day")
@@ -75,7 +75,7 @@ search:
- name: re_replace
args: ["(Y-day-.*)", "Yesterday"]
- name: fuzzytime
date:
date_year:
# 12-27-2019
selector: td:nth-last-of-type(5):not(:contains(":")):not(:contains("day")):not(:contains("ago"))
optional: true
@@ -86,7 +86,7 @@ search:
args: " -07:00" # PDT
- name: dateparse
args: "01-02-2006 -07:00"
date:
date_ago:
# 4-mins-ago
selector: td:nth-last-of-type(5):contains("ago")
optional: true
@@ -96,18 +96,20 @@ search:
- name: replace
args: ["-", " "]
- name: timeago
date:
text: "{{ if or .Result.date_year .Result.date_day .Result.date_ago }}{{ or .Result.date_year .Result.date_day .Result.date_ago }}{{ else }}now{{ end }}"
size:
selector: td:nth-last-of-type(4)
seeders:
text: 0
seeders:
seeders_optional:
optional: true
selector: td.sy, td.sn
leechers:
text: 0
leechers:
seeders:
text: "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}"
leechers_optional:
optional: true
selector: td.ly, td.ln
leechers:
text: "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}"
downloadvolumefactor:
text: 0
uploadvolumefactor:

View File

@@ -109,16 +109,16 @@ search:
- name: timeago
size:
selector: td:nth-last-of-type(4)
seeders:
text: 0
seeders:
seeders_optional:
optional: true
selector: td.sy, td.sn
leechers:
text: 0
leechers:
seeders:
text: "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}"
leechers_optional:
optional: true
selector: td.ly, td.ln
leechers:
text: "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}"
downloadvolumefactor:
text: 0
uploadvolumefactor:

View File

@@ -168,16 +168,16 @@ search:
args: " +01:00" # CET
- name: dateparse
args: "2 January 2006 15:04:05 -07:00"
seeders:
text: 0
seeders:
seeders_optional:
optional: true
selector: table tr:nth-child(3) td:nth-child(5) font b
leechers:
text: 0
leechers:
seeders:
text: "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}"
leechers_optional:
optional: true
selector: table tr:nth-child(3) td:nth-child(5) font b:nth-child(2)
leechers:
text: "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}"
downloadvolumefactor:
text: 0
uploadvolumefactor:

View File

@@ -130,7 +130,6 @@ search:
language:
selector: td:nth-last-child(5)
description:
optional: true
selector: img[src="/images/vip-icon.png"]
attribute: src
filters:

View File

@@ -129,11 +129,11 @@ search:
attribute: href
size:
selector: td:nth-child(2)
files:
text: 0
files:
files_optional:
selector: td:nth-child(3)
optional: true
files:
text: "{{ if .Result.files_optional }}{{ .Result.files_optional }}{{ else }}0{{ end }}"
date:
selector: td:nth-child(4)
seeders:

View File

@@ -64,13 +64,16 @@ settings: []
search:
paths:
- path: "{{ if .Keywords }}search/{{ .Keywords }}{{ else }}/{{ end }}"
keywordsfilters:
- name: re_replace
args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode (search doesn't support it)
rows:
selector: "table.forum_header_border tr[name='hover'].forum_header_border:has(a.magnet)" # some torrents don't have any download links, skip them
filters:
- name: andmatch
fields:
category:
text: 1
@@ -89,11 +92,11 @@ search:
download:
selector: td:nth-child(3) a.magnet, td:nth-child(3) a
attribute: href
size:
text: "512 MB"
size:
size_optional:
optional: true
selector: td:nth-child(4)
size:
text: "{{ if .Result.size_optional }}{{ .Result.size_optional }}{{ else }}512 MB{{ end }}"
date:
selector: td:nth-child(5)
filters:

View File

@@ -125,7 +125,7 @@ search:
filters:
- name: replace
args: ["details.php", "download.php"]
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
size:

View File

@@ -128,7 +128,7 @@ search:
download:
selector: a[href*="?p=torrents"][href*="&action=download"]
attribute: href
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
size:
@@ -148,7 +148,7 @@ search:
"*": 1
uploadvolumefactor:
text: 1
date:
date_day:
optional: true
selector: td.torrent_name:contains("day"), td.torrent_name:contains("σήμερα"), td.torrent_name:contains("εχθές"), td.torrent_name:contains("Δευτέρα"), td.torrent_name:contains("Τρίτη"), td.torrent_name:contains("Τετάρτη"), td.torrent_name:contains("Πέμπτη"), td.torrent_name:contains("Παρασκευή"), td.torrent_name:contains("Σάββατο"), td.torrent_name:contains("Κυριακή")
remove: span, a
@@ -184,7 +184,7 @@ search:
- name: replace
args: ["Κυριακή", "Sunday"]
- name: fuzzytime
date:
date_year:
optional: true
selector: td.torrent_name:contains("-")
remove: span, a
@@ -207,6 +207,8 @@ search:
args: " +00:00" # auto adjusted by site account profile
- name: dateparse
args: "02-01-2006 15:04 -07:00"
date:
text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
minimumratio:
text: 1.0
minimumseedtime:

View File

@@ -117,9 +117,7 @@ search:
args: ["/static/common/noartwork/noimage.png", ""]
files:
selector: td:nth-child(3)
date: # some torrents have "Never" date
text: 20 years ago
date:
date_optional:
selector: td:nth-child(5) > span
attribute: title
optional: true
@@ -128,6 +126,8 @@ search:
args: " +00:00" # auto adjusted by site account profile
- name: dateparse
args: "Jan 02 2006, 15:04 -07:00"
date: # some torrents have "Never" date
text: "{{ if .Result.date_optional }}{{ .Result.date_optional }}{{ else }}20 years ago{{ end }}"
size:
selector: td:nth-child(6)
grabs:

View File

@@ -164,16 +164,16 @@ search:
args: " +01:00" # CET
- name: dateparse
args: "2 January 2006 15:04:05 -07:00"
seeders:
text: 0
seeders:
seeders_optional:
optional: true
selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) font b
leechers:
text: 0
leechers:
seeders:
text: "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}"
leechers_optional:
optional: true
selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) font font b
leechers:
text: "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}"
downloadvolumefactor:
case:
img[src="pic/freedlfsu.gif"]: 0

View File

@@ -115,7 +115,7 @@ search:
download:
selector: a[href^="/lataa.php/"]
attribute: href
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
files:

View File

@@ -136,15 +136,13 @@ search:
download:
selector: td a[href^="index.php?page=downloadcheck"]
attribute: href
imdb:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
filters:
# javascript:popdetails('http://www.imdb.com/title/tt10209130');
- name: replace
args: ["javascript:popdetails('", ""]
- name: replace
args: ["');", ""]
- name: regexp
args: tt(\d+)
size:
selector: td:nth-last-child(1)
leechers:

View File

@@ -97,7 +97,7 @@ search:
filters:
- name: replace
args: ["-", "0 B"]
date:
date_day:
# Вчера, 08:01:41
# 2 дня назад, 19:33:51
selector: td:nth-child(5):contains(","), li.meta-date:contains(",")
@@ -108,7 +108,7 @@ search:
- name: replace
args: ["дня назад,", "days"]
- name: fuzzytime
date:
date_year:
# 16.08.2021 20:29:39
selector: td:nth-child(5):not(:contains(",")), li.meta-date:not(:contains(","))
optional: true
@@ -117,6 +117,8 @@ search:
args: " +03:00" # MSK
- name: dateparse
args: "02.01.2006 15:04:05 -07:00"
date:
text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
seeders:
selector: td.l1, li.meta-sead
leechers:

View File

@@ -256,7 +256,7 @@ search:
selector: div.selection_unter_aa > b
leechers:
selector: div.selection_unter_aaa > b
date:
date_day:
# Aujourd'hui à 06:26:25
# Hier à 05:15:19
selector: div.selection_unter_ab:not(:contains("."))
@@ -269,7 +269,7 @@ search:
- name: append
args: " +01:00" # CET
- name: fuzzytime
date:
date_year:
# Le 17.10.2020 à 04:39:44
selector: div.selection_unter_ab:contains(".")
optional: true
@@ -282,6 +282,8 @@ search:
args: " +01:00" # CET
- name: dateparse
args: "02.01.2006 15:04:05 -07:00"
date:
text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
size:
selector: div.selection_unter_ad
grabs:

View File

@@ -90,7 +90,7 @@ search:
category|noappend:
optional: true
selector: td.tit span
date:
date_day:
# 1d
# 2d 3h
# 3 dias
@@ -101,7 +101,7 @@ search:
- name: replace
args: ["días", "days ago"]
- name: timeago
date:
date_year:
# 29 Oct 17
optional: true
selector: td.fecha:not(:contains("d")):not(:contains("h"))
@@ -110,6 +110,8 @@ search:
args: " +01:00" # CET
- name: dateparse
args: "02 Jan 06 -07:00"
date:
text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
size:
selector: td:nth-child(6)
seeders:

View File

@@ -81,7 +81,6 @@ search:
fields:
description:
optional: true
selector: td:nth-child(2) > font
title:
selector: td:nth-child(2)

View File

@@ -101,7 +101,6 @@ search:
search_mode: 0
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
# supports search using imdbid, does not return imdb links in results
rows:
selector: div.group_content:has(a[href^="download.php?id="])
@@ -135,6 +134,9 @@ search:
poster:
selector: img#poster
attribute: data-src
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
date:
# time type: time elapsed (default)
selector: div.time_col span[title]