From f5fa7b5217c6a49a577089fbc5b66e1d10c757b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eV=20=28=E3=8B=8E=29?= Date: Thu, 4 May 2017 11:54:48 +0000 Subject: [PATCH] Add tracker definition for Tokyo Toshokan (#1323) --- src/Jackett/Definitions/tokyotosho.yml | 70 ++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/Jackett/Definitions/tokyotosho.yml diff --git a/src/Jackett/Definitions/tokyotosho.yml b/src/Jackett/Definitions/tokyotosho.yml new file mode 100644 index 000000000..848b7ce74 --- /dev/null +++ b/src/Jackett/Definitions/tokyotosho.yml @@ -0,0 +1,70 @@ +--- + site: tokyotosho + name: Tokyo Toshokan + description: "A BitTorrent Library for Japanese Media" + language: en-us + links: + - https://www.tokyotosho.info/ + + caps: + categories: + 1: TV/Anime # Anime + 10: TV/Anime # Non-English Anime + 3: Books # Manga + 8: TV/Anime # Drama + 2: Audio # Anime Music + 9: TV/Anime # Anime Music Videos + 7: TV/Anime # Raw Anime + 4: XXX # Hentai + 12: XXX # Hentai (Anime) + 13: XXX # Hentai (Manga) + 14: XXX # Hentai (Games) + 11: TV/Anime # Batch + 15: XXX # JAV + 5: Other # Other + modes: + search: [q] + tv-search: [q, season, ep] + + search: + path: "{{if .Query.Keywords }}search.php{{end}}" + inputs: + terms: "{{ .Query.Keywords }}" + rows: + selector: "table.listing tr.category_0" + after: 1 + fields: + category: + selector: td:nth-child(1) > a + attribute: href + filters: + - name: regexp + args: "(\\d+)" + title: + selector: td:nth-child(2) > a:nth-child(2) + details: + selector: td:nth-child(3) > a + attribute: href + download: + selector: td:nth-child(2) > a:nth-child(2) + attribute: href + size: + selector: td:nth-child(4) + filters: + - name: split + args: [ "|", 1 ] + - name: regexp + args: "Size: (.+?) ?$" + date: + selector: td:nth-child(4) + filters: + - name: split + args: [ "|", 2 ] + - name: regexp + args: "Date: (.+?) ?$" + - name: dateparse + args: "2006-01-02 15:04 MST" + seeders: + selector: td:nth-child(5) > span:nth-child(1) + leechers: + selector: td:nth-child(5) > span:nth-child(2)