Secret Cinema: change definition to match new site (#1803)

This commit is contained in:
adamwinn 2017-09-11 03:02:39 -06:00 committed by kaso17
parent b2b576a72d
commit 11406697be
1 changed files with 66 additions and 91 deletions

157
src/Jackett/Definitions/secretcinema.yml Normal file → Executable file
View File

@ -10,120 +10,95 @@
caps: caps:
categorymappings: categorymappings:
- {id: 1, cat: TV/Anime, desc: "Animation"} # - {id: 1, cat: TV/Anime, desc: "Animation"}
- {id: 2, cat: Movies, desc: "Arthouse"} # - {id: 2, cat: Movies, desc: "Arthouse"}
- {id: 3, cat: Movies, desc: "Asian"} # - {id: 3, cat: Movies, desc: "Asian"}
- {id: 19, cat: Audio/Audiobook, desc: "Audiobooks"} # - {id: 19, cat: Audio/Audiobook, desc: "Audiobooks"}
- {id: 29, cat: Movies, desc: "Badfilm"} # - {id: 29, cat: Movies, desc: "Badfilm"}
- {id: 18, cat: Books, desc: "Books"} # - {id: 18, cat: Books, desc: "Books"}
- {id: 4, cat: Movies, desc: "Classics"} # - {id: 4, cat: Movies, desc: "Classics"}
- {id: 5, cat: Movies, desc: "Comedy"} # - {id: 5, cat: Movies, desc: "Comedy"}
- {id: 20, cat: Books/Comics, desc: "Comix"} # - {id: 20, cat: Books/Comics, desc: "Comix"}
- {id: 6, cat: Movies, desc: "Cult"} # - {id: 6, cat: Movies, desc: "Cult"}
- {id: 7, cat: TV/Documentary, desc: "Documentary"} # - {id: 7, cat: TV/Documentary, desc: "Documentary"}
- {id: 8, cat: Movies, desc: "Fantasy & SF"} # - {id: 8, cat: Movies, desc: "Fantasy & SF"}
- {id: 9, cat: Movies, desc: "Horror"} # - {id: 9, cat: Movies, desc: "Horror"}
- {id: 22, cat: Movies, desc: "Noir"} # - {id: 22, cat: Movies, desc: "Noir"}
- {id: 17, cat: Audio, desc: "OST"} # - {id: 17, cat: Audio, desc: "OST"}
- {id: 10, cat: Other, desc: "Other"} # - {id: 10, cat: Other, desc: "Other"}
- {id: 15, cat: TV, desc: "Other TV"} # - {id: 15, cat: TV, desc: "Other TV"}
- {id: 16, cat: Audio, desc: "Radio"} # - {id: 16, cat: Audio, desc: "Radio"}
- {id: 11, cat: Movies, desc: "Silent"} # - {id: 11, cat: Movies, desc: "Silent"}
- {id: 12, cat: TV, desc: "Talent Show!"} # - {id: 12, cat: TV, desc: "Talent Show!"}
- {id: 14, cat: Movies, desc: "TV Movies"} # - {id: 14, cat: Movies, desc: "TV Movies"}
- {id: 13, cat: TV, desc: "TV Series"} # - {id: 13, cat: TV, desc: "TV Series"}
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep] tv-search: [q, season, ep]
login: login:
path: /takelogin.php path: login.php
method: post method: form
form: form
inputs: inputs:
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
returnto: "index.php" error:
- selector: table:contains("Login failed!")
test: test:
path: /browse.php path: index.php
selector: div.Userstats
ratio: ratio:
path: /browse.php path: torrents.php
selector: div.Userstats selector: li#stats_ratio > span
filters:
- name: regexp
args: "\n\u00a0(.*) \u00a0"
search: search:
path: /browse.php path: torrents.php
inputs: inputs:
$raw: "{{range .Categories}}cat{{.}}=on&{{end}}" $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
search: "{{ .Query.Keywords }}" searchstr: "{{ .Query.Keywords }}"
incldead: "1" searchsubmit: 1
tpp: "100"
dirty: "1"
rows: rows:
selector: td > table[id="large"] > tbody > tr:has(div.browsing) selector: table#torrent_table > tbody > tr.torrent
filters:
- name: andmatch
dateheaders:
selector: ":has(td.colhead[title] > b)"
filters:
- name: dateparse
args: "Mon 02 Jan"
fields: fields:
title:
selector: a[href^="viewtopic.php?id="]
description:
selector: table > tbody > tr:nth-child(2) > td:nth-child(2)
category:
selector: a[href^="browse.php?cat"]
attribute: href
filters:
- name: replace
args: ["browse.php?cat", ""]
- name: replace
args: ["=on", ""]
details:
selector: a[href^="viewtopic.php?id="]
attribute: href
download: download:
selector: a[href^="download.php/"] selector: a[href^="torrents.php?action=download&id="]
attribute: href
description:
selector: div.group_info > a.tooltip
remove: span, div.tags, div.torrent_info
title:
selector: div.group_info > a.tooltip
remove: span, div.tags, div.torrent_info
# category:
# selector: td.cats_col
# case:
# div.cats_music: 1
# div.cats_applications: 2
# div.cats_ebooks: 3
# div.cats_audiobooks: 4
# div.cats_elearningvideos: 5
# div.cats_comedy: 6
# div.cats_comics: 7
comments:
selector: a[href^="torrents.php?id="]
attribute: href attribute: href
size:
selector: table > tbody > tr:nth-child(2) > td:nth-child(4)
files: files:
selector: table > tbody > tr:nth-child(2) > td:nth-child(3) selector: td:nth-child(4)
filters:
- name: regexp
args: "(\\d+)"
grabs:
selector: table > tbody > tr:nth-child(2) > td:nth-child(5)
filters:
- name: regexp
args: "(\\d+)"
seeders:
selector: table > tbody > tr:nth-child(2) > td:nth-child(6)
filters:
- name: regexp
args: "(\\d+)"
leechers:
selector: table > tbody > tr:nth-child(2) > td:nth-child(7)
filters:
- name: regexp
args: "(\\d+)"
date: date:
selector: td:nth-child(1) > div > table > tbody > tr:nth-child(2) > td:nth-child(1) selector: td:nth-child(5)
filters: size:
- name: replace selector: td:nth-child(6)
args: ["'", ""] grabs:
- name: replace selector: td:nth-child(7)
args: ["\xA0", ""] seeders:
- name: dateparse selector: td:nth-child(8)
args: "02 Jan 0615:04" leechers:
selector: td:nth-child(9)
downloadvolumefactor: downloadvolumefactor:
case: case:
"strong.tl_free:contains(\"Freeleech!\")": "0"
"*": "1" "*": "1"
uploadvolumefactor: uploadvolumefactor:
case: case: