Add SDBits tracker (#807)

This commit is contained in:
kaso17 2016-12-05 15:14:16 +01:00 committed by GitHub
parent 4283ea5e67
commit 59b90d3896
3 changed files with 96 additions and 0 deletions

View File

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

View File

@ -0,0 +1,92 @@
---
site: sdbits
name: SDBits
description: "SDBits is a small tracker that focuses on SD movies and tv."
language: en-us
links:
- http://sdbits.org
caps:
categories:
6: Audio # Audio
3: TV/Documentary # Documentary
1: Movies # Movies
4: Audio # Music
5: TV/Sport # Sports
2: TV # TV
modes:
search: [q]
tv-search: [q, season, ep]
login:
path: /takeloginn3.php
method: post
inputs:
uname: "{{ .Config.username }}"
password: "{{ .Config.password }}"
returnto: "/"
error:
- selector: td.embedded:has(h2:contains("failed")+table)
test:
path: /browse.php
selector: span.smallfont:has(a[href="logout.php"])
ratio:
path: /browse.php
selector: span.smallfont:has(a[href="logout.php"])
filters:
- name: regexp
args: "Ratio:[ \u00a0](.*?)\u00a0"
search:
path: /browse.php
method: post
inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{ .Query.Keywords }}"
incldead: "1"
descriptions: "0"
rows:
selector: table#torrent-list > tbody > tr[id]
fields:
title:
selector: td:nth-child(3) > b > a
category:
selector: a[href^="?cat="]
attribute: href
filters:
- name: querystring
args: cat
details:
selector: td:nth-child(3) > b > a
attribute: href
download:
selector: a[href^="download.php?id="]
attribute: href
size:
selector: td:nth-child(6)
grabs:
selector: td:nth-child(7)
filters:
- name: regexp
args: "(\\d+)"
seeders:
selector: td:nth-child(8)
leechers:
selector: td:nth-child(9)
date:
selector: td:nth-child(5)
filters:
- name: append
args: " ago"
imdb:
selector: a[href^="http://www.imdb.com/"]
attribute: href
downloadvolumefactor:
case:
"a[style=\"color:#000099\"][href^=\"details.php?\"]": "0"
"*": "1"
uploadvolumefactor:
case:
"*": "1"

View File

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