From 208761f28c38b5276b4f25eefbb33e8d39818e78 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Tue, 17 Jan 2017 13:28:18 +0100 Subject: [PATCH] Bitspyder: add support for alternative style --- src/Jackett/Definitions/bitspyder.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/Jackett/Definitions/bitspyder.yml b/src/Jackett/Definitions/bitspyder.yml index 22c8aaf01..c96efbad1 100644 --- a/src/Jackett/Definitions/bitspyder.yml +++ b/src/Jackett/Definitions/bitspyder.yml @@ -68,6 +68,7 @@ filters: - name: andmatch fields: + # there are two styles, we support both title: selector: a[href^="details.php?id="] category: @@ -88,19 +89,19 @@ - name: replace args: ["&hit=1", "/dummy.torrent"] size: - selector: td:nth-child(6) + selector: td.rowcol:nth-child(6):has(br), font:contains("Size:") + font files: - selector: td:nth-child(3) + selector: a[href*="&filelist=1"] grabs: - selector: td:nth-child(7) + selector: td.rowcol:nth-child(7):contains("times"), font:contains("Snatches:") filters: - name: regexp args: ([\d\,]+) seeders: - selector: td:nth-child(8) + selector: td.rowcol:nth-last-child(3) leechers: - selector: td:nth-child(9) - date: + selector: td.rowcol:nth-last-child(2) + date|optional|1: selector: font[color="5F5F5F"] filters: - name: split @@ -111,6 +112,16 @@ args: " +00:00" - name: dateparse args: "2006-01-02 15:04:05 -07:00" + date|optional|2: + selector: a[title^="Upploaded at"] + attribute: title + filters: + - name: replace + args: ["Upploaded at - ", ""] + - name: append + args: " +00:00" + - name: dateparse + args: "2006-01-02 15:04:05 -07:00" downloadvolumefactor: case: "*": "1"