From e7edd1734b9f5d1d3a12d0740e85d1cdeb5f2a46 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 12 Feb 2019 11:29:22 +1300 Subject: [PATCH] add CartoonChaos a Private tracker for animated tv and movies. resolves #5 --- README.md | 1 + .../Definitions/cartoonchaos.yml | 128 ++++++++++++++++++ 2 files changed, 129 insertions(+) create mode 100644 src/Jackett.Common/Definitions/cartoonchaos.yml diff --git a/README.md b/README.md index ba864370b..d03150bf4 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * BTNext (BTNT) * BTXpress (BTX) * Carpathians + * CartoonChaos (CC) * CasStudioTV * CCFBits * CGPeers diff --git a/src/Jackett.Common/Definitions/cartoonchaos.yml b/src/Jackett.Common/Definitions/cartoonchaos.yml new file mode 100644 index 000000000..ecc16ad33 --- /dev/null +++ b/src/Jackett.Common/Definitions/cartoonchaos.yml @@ -0,0 +1,128 @@ +--- + site: cartoonchaos + name: CartoonChaos + description: "CartoonChaos (CC) is a Private Torrent Tracker for ANIMATED MOVIES / TV" + language: en-us + type: private + encoding: UTF-8 + links: + - http://www.cartoonchaos.org/ + + settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: info_results + type: info + label: "Search results" + default: "For best results, increase the torrents number in your profile to 100.
Default is 15." + + caps: + categorymappings: + - {id: 30, cat: TV, desc: "Complete Sets"} + - {id: 15, cat: TV, desc: "Educational"} + - {id: 16, cat: TV, desc: "Kids"} + - {id: 17, cat: TV, desc: "Mature Cartoons"} + - {id: 41, cat: TV, desc: "Shorts"} + - {id: 20, cat: TV/Anime, desc: "Anime Movies"} + - {id: 21, cat: TV/Anime, desc: "Anime Series"} + - {id: 26, cat: Movies, desc: "Animated Movies"} + - {id: 23, cat: Audio, desc: "Sound Tracks"} + - {id: 24, cat: Audio, desc: "Theme Tunes"} + - {id: 43, cat: Audio/Other, desc: "Misc Audio"} + - {id: 14, cat: TV, desc: "Banned"} + - {id: 29, cat: TV, desc: "Public Domain"} + - {id: 42, cat: TV/FOREIGN, desc: "Foreign Language"} + - {id: 28, cat: TV, desc: "Animated Adverts"} + - {id: 45, cat: TV/Documentary, desc: "Documentaries"} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + + login: + path: index.php?page=login + method: form + form: form[action^="index.php?page=login"] + inputs: + uid: "{{ .Config.username }}" + pwd: "{{ .Config.password }}" + error: + - selector: tr td span[style="color:#FF0000;"] + test: + path: index.php + selector: a[href="logout.php"] + + search: + paths: + # http://www.cartoonchaos.org/index.php?page=torrents&search=transformers&category=30;21;20;26;15;16;17&options=0&active=0 + - path: index.php + inputs: + page: torrents + search: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{end}}" + category: "{{if .Categories}}{{range .Categories}}{{.}};{{end}}{{else}}0{{end}}" + options: 0 + active: 0 + + rows: + selector: table.lista tr td table.lista tr:has(a[href^="index.php?page=torrent-details"]) + fields: + title: + selector: td a[href^="index.php?page=torrent-details"] + details: + selector: td a[href^="index.php?page=torrent-details"] + attribute: href + category: + selector: td a[href^="index.php?page=torrents&category="] + attribute: href + filters: + - name: querystring + args: category + download: + selector: td a[href^="download.php"] + attribute: href + imdb: + optional: true + selector: a[href*="http://www.imdb.com/title/"] + attribute: href + filters: + # http://anonym.to?javascript:popdetails('http://www.imdb.com/title/tt0086817'); + - name: replace + args: [" http://anonym.to?javascript:popdetails('", ""] + - name: replace + args: ["');", ""] + size: + selector: td:nth-child(10) + # two flavours of dates + date: + # Yesterday at 10:03:30 PM + selector: td:nth-child(5):contains("day") + optional: true + filters: + - name: re_replace + args: ["[ ]at|[\\s+]|[//\xa0],\\/g", " "] + date: + # February 09, 2019, 06:35:08 AM + selector: td:nth-child(5):not(:contains("day")) + optional: true + filters: + - name: re_replace + args: ["[,]|[\\s+]|[//\xa0],\\/g", " "] + - name: dateparse + args: "January 02 2006 03:04:05 PM" + seeders: + selector: td:nth-child(6) + leechers: + selector: td:nth-child(7) + grabs: + selector: td:nth-child(8) + downloadvolumefactor: + case: + img[src="gold/gold.gif"]: "0" + "*": "1" + uploadvolumefactor: + text: "1"