Skip to content

Commit

Permalink
add CRT a private site. resolves #12215
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Aug 25, 2021
1 parent e57a19f commit 1018070
Show file tree
Hide file tree
Showing 2 changed files with 143 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -289,6 +289,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
* Carpathians
* CartoonChaos (CC)
* CasaTorrent [![(invite needed)][inviteneeded]](#)
* Cathode-Ray.Tube (CRT)
* CCFBits
* CeskeForum
* CGPeers
Expand Down
142 changes: 142 additions & 0 deletions src/Jackett.Common/Definitions/cathoderaytube.yml
@@ -0,0 +1,142 @@
---
id: cathoderaytube
name: Cathode-Ray.Tube
description: "Cathode-Ray.Tube (CRT) is a Private Torrent Tracker for OLDER MOVIES / TV"
language: en
type: private
encoding: UTF-8
links:
- https://www.cathode-ray.tube/

caps:
categorymappings:
- {id: 13, cat: PC/Games, desc: "Games"}
- {id: 4, cat: Other, desc: "Misc"}
- {id: 1, cat: Movies, desc: "Movies"}
- {id: 2, cat: TV, desc: "TV"}
- {id: 3, cat: Other, desc: "WOC"}

modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]

settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: info_tpp
type: info
label: Results Per Page
default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile.
- name: sort
type: select
label: Sort requested from site
default: time
options:
time: created
seeders: seeders
size: size
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc

login:
path: login
method: form
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
cinfo: "2550|1350|24|-60"
iplocked: 0
keeploggedin: 1
error:
- selector: div.error
test:
path: /
selector: "#nav_userinfo"

search:
paths:
- path: torrents.php
inputs:
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
searchtext: "{{ .Keywords }}"
order_by: "{{ .Config.sort }}"
order_way: "{{ .Config.type }}"
action: advanced
filter_freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
taglist: ""

rows:
selector: table#torrent_table > tbody > tr[class^="torrent row"]:has(a[href*="action=download"])

fields:
category:
selector: a[href^="/torrents.php?filter_cat"]
attribute: href
filters:
- name: regexp
args: \[(\d+)\]
title:
selector: a[href^="/torrents.php?id="]
details:
selector: a[href^="/torrents.php?id="]
attribute: href
download:
selector: a[href^="torrents.php?action=download&id="]
attribute: href
description:
optional: true
selector: div.tags
poster:
selector: td:nth-child(2) > script
filters:
- name: regexp
args: "src=\\\\\"(.*?)\\\\\""
- name: re_replace
args: ["\\\\(.)", "$1"]
- name: replace
args: ["/static/styles/modern/crt.png", ""]
files:
selector: td:nth-child(3)
date:
selector: td:nth-child(5) > span
attribute: title
filters:
- name: append
args: " +00:00" # auto adjusted by site account profile
- name: dateparse
args: "Jan 02 2006, 15:04 -07:00"
size:
selector: td:nth-child(6)
grabs:
selector: td:nth-child(7)
seeders:
selector: td:nth-child(8)
leechers:
selector: td:nth-child(9)
downloadvolumefactor:
case:
span.icon[title*="Freeleech"]: 0
"img[alt=\"Freeleech\"]": 0
"*": 1
uploadvolumefactor:
case:
span.icon[title*="DoubleSeed"]: 2
"img[alt=\"DoubleSeed\"]": 2
"*": 1
minimumratio:
text: 1.0
# Luminance

0 comments on commit 1018070

Please sign in to comment.