Add Secret Cinema tracker (#811)

This commit is contained in:
kaso17
2016-12-05 18:01:11 +01:00
committed by GitHub
parent 56d7d42836
commit 441023a336
4 changed files with 132 additions and 1 deletions

View File

@@ -68,6 +68,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/
* SceneFZ
* SceneTime
* SDBits
* Secret Cinema
* Shareisland
* Shazbat
* SpeedCD

View File

@@ -0,0 +1,127 @@
---
site: secretcinema
name: Secret Cinema
description: "A tracker for rare movies."
language: en-us
encoding: "UTF-8"
links:
- http://www.secret-cinema.net
caps:
categories:
1: TV/Anime # Animation
2: Movies # Arthouse
3: Movies # Asian
19: Audio/Audiobook # Audiobooks
29: Movies # Badfilm
18: Books # Books
4: Movies # Classics
5: Movies # Comedy
20: Books/Comics # Comix
6: Movies # Cult
7: TV/Documentary # Documentary
8: Movies # Fantasy & SF
9: Movies # Horror
22: Movies # Noir
17: Audio # OST
10: Other # Other
15: TV # Other TV
16: Audio # Radio
11: Movies # Silent
12: TV # Talent Show!
14: Movies # TV Movies
13: TV # TV Series
modes:
search: [q]
tv-search: [q, season, ep]
login:
path: /takelogin.php
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
returnto: "index.php"
test:
path: /browse.php
selector: div.Userstats
ratio:
path: /browse.php
selector: div.Userstats
filters:
- name: regexp
args: "\n\u00a0(.*) \u00a0"
search:
path: /browse.php
inputs:
$raw: "{{range .Categories}}cat{{.}}=on&{{end}}"
search: "{{ .Query.Keywords }}"
incldead: "1"
tpp: "100"
dirty: "1"
rows:
selector: table[id="large"] > tbody > tr:has(div.browsing)
dateheaders:
selector: ":has(td.colhead[title] > b)"
filters:
- name: dateparse
args: "Mon 02 Jan"
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:
selector: a[href^="download.php/"]
attribute: href
size:
selector: table > tbody > tr:nth-child(2) > td:nth-child(4)
files:
selector: table > tbody > tr:nth-child(2) > td:nth-child(3)
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:
selector: td:nth-child(1) > div > table > tbody > tr:nth-child(2) > td:nth-child(1)
filters:
- name: replace
args: ["'", ""]
- name: replace
args: ["\xA0", ""]
- name: dateparse
args: "02 Jan 0615:04"
downloadvolumefactor:
case:
"*": "1"
uploadvolumefactor:
case:
"*": "1"

View File

@@ -915,7 +915,7 @@ namespace Jackett.Indexers
// if DateHeaders is set go through the previous rows and look for the header selector
var DateHeaders = Definition.Search.Rows.Dateheaders;
if (DateHeaders != null)
if (release.PublishDate == null && DateHeaders != null)
{
var PrevRow = Row.PreviousElementSibling;
string value = null;

View File

@@ -426,6 +426,9 @@
<Content Include="Definitions\sdbits.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Definitions\secretcinema.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config">
<SubType>Designer</SubType>
</None>