1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-30 19:58:39 +00:00

add libranet a Hungarian Private music / ebook site. resolves #5528

This commit is contained in:
Garfield69 2019-06-23 16:44:37 +12:00
parent 23a796378f
commit 5f15651e19
2 changed files with 108 additions and 0 deletions

View file

@ -260,6 +260,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/
* Kapaki
* Karagarga
* Le Saloon
* LibraNet (LN)
* LinkoManija
* LosslessClub
* M-Team TP (MTTP)

View file

@ -0,0 +1,107 @@
---
site: libranet
name: LibraNet
description: "LibraNet (LN) is a HUNGARIAN Private Torrent Tracker for EBOOKS / LOSSLESS MUSIC"
language: hu
type: private
encoding: ISO-8859-2
links:
- https://libranet.org/
caps:
categorymappings:
- {id: 50, cat: Movies, desc: "Film"}
- {id: 51, cat: Movies, desc: "Film/Hun"}
- {id: 3, cat: Audio/Audiobook, desc: "Hangoskönyv"}
- {id: 4, cat: Audio/Audiobook, desc: "Hangoskönyv/Hun"}
- {id: 1, cat: Books/Ebook, desc: "Könyv"}
- {id: 2, cat: Books/Ebook, desc: "Könyv/Hun"}
- {id: 56, cat: Audio/Lossless, desc: "LossLess"}
- {id: 57, cat: Audio/Lossless, desc: "LossLess/Hun"}
- {id: 48, cat: Books/Magazines, desc: "Magazin"}
- {id: 49, cat: Books/Magazines, desc: "Magazin/Hun"}
modes:
search: [q]
login:
path: takelogin.php
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: td.text:contains("Error")
message:
selector: td.text
test:
path: /
selector: a[href="/logout.php"]
search:
paths:
# http://libranet.org/browse.php?cat56=1&cat57=1&search=&searchwhere=&subcat=&musicstyle=&format=
- path: browse.php
inputs:
$raw: "{{range .Categories}}cat{{.}}=1&{{end}}"
search: "{{.Keywords}}"
searchwhere: ""
subcat: ""
musicstyle: ""
format: ""
rows:
selector: table.rounded tr:has(a[href^="browse.php?cat="])
fields:
category:
selector: a[href^="browse.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
title:
selector: a[href^="details.php?id="]
details:
selector: a[href^="details.php?id="]
attribute: href
download:
selector: a[href^="details.php?id="]
attribute: href
filters:
- name: replace
args: ["details", "download"]
- name: replace
args: ["&hit=1", ""]
description:
selector: img[width="60"]
attribute: title
banner:
selector: a[onmouseover]
optional: true
attribute: onmouseover
filters:
- name: regexp
args: "src=(.*?) width"
date:
selector: td:nth-last-child(7)
filters:
- name: dateparse
args: "2006-01-0215:04:05"
size:
selector: td:nth-last-child(6)
grabs:
selector: td:nth-last-child(5)
filters:
- name: regexp
args: "(\\d+) x"
seeders:
selector: td:nth-last-child(4)
leechers:
selector: td:nth-last-child(3)
downloadvolumefactor:
case:
img[src$="/pic/freeleech.gif"]: 0
"*": "1"
uploadvolumefactor:
case:
"*": "1"