From bbf9d86b21c995ed4fcf20371df24e704e44f17c Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 15 May 2021 11:40:24 +1200 Subject: [PATCH] danishbytes: new cat selector resolves #11730 also update no-poster detection --- .../Definitions/danishbytes.yml | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/Jackett.Common/Definitions/danishbytes.yml b/src/Jackett.Common/Definitions/danishbytes.yml index aafba6e71..e3810af05 100644 --- a/src/Jackett.Common/Definitions/danishbytes.yml +++ b/src/Jackett.Common/Definitions/danishbytes.yml @@ -12,9 +12,9 @@ caps: categorymappings: - {id: 1, cat: Movies, desc: "Movies"} - {id: 2, cat: TV, desc: "TV"} - - {id: 5, cat: PC/0day, desc: "Appz"} - - {id: 4, cat: PC/Games, desc: "Games"} - {id: 3, cat: Audio, desc: "Music"} + - {id: 4, cat: PC/Games, desc: "Games"} + - {id: 5, cat: PC/0day, desc: "Appz"} - {id: 8, cat: Books, desc: "Bookz"} modes: @@ -98,11 +98,15 @@ search: fields: category: - selector: a[href*="/categories/"] - attribute: href - filters: - - name: regexp - args: "/categories/(\\d+)" + selector: i.torrent-icon + attribute: class + case: + i.fa-film: 1 + i.fa-tv-retro: 2 + i.fa-music: 3 + i.fa-gamepad: 4 + i.fa-compact-disc: 5 + i.fa-book-open: 8 title: selector: a.view-torrent download: @@ -122,7 +126,7 @@ search: - 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/600x900&w=180&h=270", ""] + args: ["https://images.weserv.nl/?url=https://via.placeholder.com/52x80&w=180&h=270", ""] size: selector: td:nth-last-child(4) seeders: @@ -200,4 +204,4 @@ search: minimumseedtime: # 2 days (as seconds = 2 x 24 x 60 x 60) text: 172800 -# UNIT3D 5.1.0 DB-edition +# UNIT3D 5.1.0 DBy-edition 0.75