add MagnetDL public tracker. closes #1069 (#1865)

* docs: add MagnetDL public tracker. closes #1069

* Create magnetdl.yml

* magnetdl: ensure keywords are in lower case

* docs: oops, m before n
This commit is contained in:
garfield69 2017-09-22 18:03:55 +12:00 committed by kaso17
parent db476951fe
commit 11ebe34f55
2 changed files with 68 additions and 0 deletions

View File

@ -35,6 +35,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/
* KickAssTorrent
* KickAssTorrent (thekat.se clone)
* LimeTorrents
* MagnetDL
* NextTorrent
* Nyaa.si
* Nyaa-Pantsu

View File

@ -0,0 +1,67 @@
---
site: magnetdl
name: MagnetDL
language: en-us
type: public
encoding: UTF-8
links:
- http://www.magnetdl.com/
caps:
categories:
"TV": TV
"Movie": Movies
"Music": Audio
"E-Book": Books/Ebook
"Game": PC/Games
"Software": PC
"Other": Other
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
settings: []
search:
headers:
# prevent redirect
Accept: ["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"]
keywordsfilters:
# replace space between keywords with - to prevent 404 Not Found
- name: re_replace
args: [" ", "-"]
- name: tolower
# return movie results if there are no search parms supplied (for use with the TEST button)
# http://www.magnetdl.com/m/midnight-texas-s01e10/
path: "{{if .Keywords}}/{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{else}}download/movies/{{end}}"
rows:
selector: tr:has(td[class="m"])
fields:
title:
selector: td[class="n"] a
attribute: title
category:
optional: true
selector: td[class^="t"]
details:
selector: td[class="n"] a
attribute: href
magnet:
selector: td[class="m"] a
attribute: href
date:
selector: td:nth-child(3)
filters:
- name: timeago
size:
selector: td:nth-child(6)
seeders:
selector: td[class="s"]
files:
selector: td[class="l"]
downloadvolumefactor:
text: "0"
uploadvolumefactor:
text: "1"