diff --git a/README.md b/README.md index 8dd2d121a..e35c7116c 100644 --- a/README.md +++ b/README.md @@ -334,6 +334,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Torrent-Syndikat * TOrrent-tuRK (TORK) * TorViet (HDVNBits) + * TotallyKids (TK) * ToTheGlory * TranceTraffic * Trezzor diff --git a/src/Jackett.Common/Definitions/totallykids.yml b/src/Jackett.Common/Definitions/totallykids.yml new file mode 100644 index 000000000..6cef3d394 --- /dev/null +++ b/src/Jackett.Common/Definitions/totallykids.yml @@ -0,0 +1,125 @@ +--- + site: totallykids + name: TotallyKids + description: "TotallyKids (TK) is a Private Torrent Tracker for CHILDRENS MOVIES / TV / GENERAL" + language: en-us + type: private + encoding: UTF-8 + links: + - http://www.totallykids.tv/ + + 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: 5, cat: Audio, desc: "Music"} + - {id: 6, cat: Audio/Audiobook, desc: "Audiobooks"} + - {id: 4, cat: Books/Comics, desc: "Comics"} + - {id: 7, cat: Books/EBook, desc: "E-Books"} + - {id: 16, cat: Movies, desc: "Family Movies"} + - {id: 23, cat: Movies, desc: "Teen Movies"} + - {id: 8, cat: PC/Games, desc: "Games"} + - {id: 1, cat: TV, desc: "Kids"} + - {id: 2, cat: TV, desc: "Family"} + - {id: 15, cat: TV, desc: "Educational"} + - {id: 24, cat: TV, desc: "Teens"} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + music-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.totallykids.tv/index.php?page=torrents&search=scooby&category=1;2;5;6;4;7;8;15;24;16;23&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" +