From be57841a50b3018dc866c1e26b3b7bbe35b99297 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 1 Mar 2021 15:33:04 +1300 Subject: [PATCH] danishbytes: add posters and imdb/tmdb --- src/Jackett.Common/Definitions/danishbytes.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/danishbytes.yml b/src/Jackett.Common/Definitions/danishbytes.yml index 4b0255db2..29928b1f9 100644 --- a/src/Jackett.Common/Definitions/danishbytes.yml +++ b/src/Jackett.Common/Definitions/danishbytes.yml @@ -46,7 +46,7 @@ settings: - name: sort type: select label: Sort requested from site - default: "created_at" + default: created_at options: created_at: created seeders: seeders @@ -85,6 +85,7 @@ search: $raw: "{{ range .Categories }}categories[]={{.}}&{{end}}" search: "{{ if .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" # for dashboard imdbid search description: "" + keywords: "" uploader: "" imdb: "{{ .Query.IMDBIDShort }}" tvdb: "{{ .Query.TVDBID }}" @@ -121,6 +122,14 @@ search: details: selector: a.view-torrent attribute: href + poster: + selector: div.torrent-poster img + attribute: src + filters: + - name: replace + args: ["&w=52&h=80", "&w=180&h=270"] # for display on dashboard + - name: replace + args: ["https://images.weserv.nl/?url=https://via.placeholder.com/52x80&w=180&h=270", ""] size: selector: td:nth-last-child(4) seeders: @@ -132,6 +141,12 @@ search: filters: - name: regexp args: (\d+) + imdb: + selector: a[href*="imdb.com/title/tt"] + attribute: href + tmdbid: + selector: a[href*="themoviedb.org/movie/"] + attribute: href date: selector: time filters: