demonoid: new layout

now includes posters and imdb
This commit is contained in:
Garfield69 2022-01-05 18:36:01 +13:00
parent c95b34953d
commit de6949f303
1 changed files with 15 additions and 12 deletions

View File

@ -1,7 +1,7 @@
---
id: demonoid
name: Demonoid
description: "Demonoid is a Public torrent site for MOVIES / TV / GENERAL"
description: "Demonoid is a Semi-Private torrent site for MOVIES / TV / GENERAL"
language: en-US
type: semi-private
encoding: UTF-8
@ -357,10 +357,10 @@ search:
rows:
# only the default theme "Demonoid - v5" is supported
selector: table.table:has(td.torrent__table-today) > tbody > tr:has(td[class^="tone_"])
selector: table.table tbody tr.table__row:has(td[class*="tone_"])
after: 1
dateheaders:
selector: tr td.torrent__table-today:not(:contains("Sponsored links"))
selector: tr td.table__separator:not(:contains("Sponsored links"))
filters:
- name: replace
args: ["Added ", ""]
@ -368,27 +368,30 @@ search:
args: ["on ", ""]
fields:
title_default:
selector: a[href^="/files/details/"]
title_optional:
selector: a[href^="/files/details/"]
optional: true
attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
category:
selector: span.torrent__table-info > a:nth-child(2)
selector: span.table__column__subtext > a:nth-child(2)
attribute: href
optional: true
filters:
- name: querystring
args: subcategory
title:
selector: a[href^="/files/details/"]
details:
selector: a[href^="/files/details/"]
attribute: href
download:
selector: a[href^="/files/details/"]
attribute: href
poster:
selector: div[title]
attribute: data-bs-content
filters:
- name: regexp
args: src='(.+?)'
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
description:
selector: td:nth-last-child(7)
size: