From 04872dfc4cada541ef7c1e6082b85dbf869ca53d Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Tue, 7 Feb 2023 04:45:48 +0000 Subject: [PATCH] ourbits: remove junk from description also add imdbid and doubanid placeholder selectors --- src/Jackett.Common/Definitions/ourbits.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/ourbits.yml b/src/Jackett.Common/Definitions/ourbits.yml index c1dfc8bc3..d226b6ef5 100644 --- a/src/Jackett.Common/Definitions/ourbits.yml +++ b/src/Jackett.Common/Definitions/ourbits.yml @@ -92,6 +92,14 @@ search: download: selector: a[href^="download.php?id="] attribute: href + imdbid: + # site currently only has a badge and rating, the id is not present. just in case a future update. + selector: a[href*="imdb.com/title/tt"] + attribute: href + doubanid: + # site currently only has a badge and rating, the id is not present. just in case a future update. + selector: a[href*="movie.douban.com/subject/"] + attribute: href date_elapsed: # time type: time elapsed (default) selector: td.rowfollow:nth-child(4) > span[title] @@ -141,6 +149,9 @@ search: # 2 days (as seconds = 2 x 24 x 60 x 60) text: 172800 description: - selector: td.rowfollow:nth-child(2) - remove: a, img + selector: td.rowfollow:nth-child(2) > table > tbody > tr > td + remove: a, img, b, span + filters: + - name: replace + args: ["will end in", ""] # Ourbits 1.1.0 (Based on NexusPHP Standard v1.5 Beta 4) e71117f 2023-02-05