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: download:
selector: a[href^="download.php?id="] selector: a[href^="download.php?id="]
attribute: href attribute: href
imdb: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
date_elapsed: date_elapsed:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -64,13 +64,16 @@ settings: []
search: search:
paths: paths:
- path: "{{ if .Keywords }}search/{{ .Keywords }}{{ else }}/{{ end }}" - path: "{{ if .Keywords }}search/{{ .Keywords }}{{ else }}/{{ end }}"
keywordsfilters: keywordsfilters:
- name: re_replace - name: re_replace
args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode (search doesn't support it) args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode (search doesn't support it)
rows: 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 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: filters:
- name: andmatch - name: andmatch
fields: fields:
category: category:
text: 1 text: 1
@@ -89,11 +92,11 @@ search:
download: download:
selector: td:nth-child(3) a.magnet, td:nth-child(3) a selector: td:nth-child(3) a.magnet, td:nth-child(3) a
attribute: href attribute: href
size: size_optional:
text: "512 MB"
size:
optional: true optional: true
selector: td:nth-child(4) selector: td:nth-child(4)
size:
text: "{{ if .Result.size_optional }}{{ .Result.size_optional }}{{ else }}512 MB{{ end }}"
date: date:
selector: td:nth-child(5) selector: td:nth-child(5)
filters: filters:

View File

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

View File

@@ -128,7 +128,7 @@ search:
download: download:
selector: a[href*="?p=torrents"][href*="&action=download"] selector: a[href*="?p=torrents"][href*="&action=download"]
attribute: href attribute: href
imdb: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
size: size:
@@ -148,7 +148,7 @@ search:
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
date: date_day:
optional: true 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("Κυριακή") 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 remove: span, a
@@ -184,7 +184,7 @@ search:
- name: replace - name: replace
args: ["Κυριακή", "Sunday"] args: ["Κυριακή", "Sunday"]
- name: fuzzytime - name: fuzzytime
date: date_year:
optional: true optional: true
selector: td.torrent_name:contains("-") selector: td.torrent_name:contains("-")
remove: span, a remove: span, a
@@ -207,6 +207,8 @@ search:
args: " +00:00" # auto adjusted by site account profile args: " +00:00" # auto adjusted by site account profile
- name: dateparse - name: dateparse
args: "02-01-2006 15:04 -07:00" 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: minimumratio:
text: 1.0 text: 1.0
minimumseedtime: minimumseedtime:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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