1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-29 19:27:22 +00:00

danishbytes: add posters and imdb/tmdb

This commit is contained in:
Garfield69 2021-03-01 15:33:04 +13:00
parent 6718b12a65
commit be57841a50

View file

@ -46,7 +46,7 @@ settings:
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
default: "created_at" default: created_at
options: options:
created_at: created created_at: created
seeders: seeders seeders: seeders
@ -85,6 +85,7 @@ search:
$raw: "{{ range .Categories }}categories[]={{.}}&{{end}}" $raw: "{{ range .Categories }}categories[]={{.}}&{{end}}"
search: "{{ if .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" # for dashboard imdbid search search: "{{ if .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" # for dashboard imdbid search
description: "" description: ""
keywords: ""
uploader: "" uploader: ""
imdb: "{{ .Query.IMDBIDShort }}" imdb: "{{ .Query.IMDBIDShort }}"
tvdb: "{{ .Query.TVDBID }}" tvdb: "{{ .Query.TVDBID }}"
@ -121,6 +122,14 @@ search:
details: details:
selector: a.view-torrent selector: a.view-torrent
attribute: href 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: size:
selector: td:nth-last-child(4) selector: td:nth-last-child(4)
seeders: seeders:
@ -132,6 +141,12 @@ search:
filters: filters:
- name: regexp - name: regexp
args: (\d+) args: (\d+)
imdb:
selector: a[href*="imdb.com/title/tt"]
attribute: href
tmdbid:
selector: a[href*="themoviedb.org/movie/"]
attribute: href
date: date:
selector: time selector: time
filters: filters: