Jackett/src/Jackett.Common/Definitions/legittorrents.yml

94 lines
2.5 KiB
YAML
Raw Normal View History

---
site: legittorrents
name: Legit Torrents
description: "Legit Torrents is a Public site for free and legal torrents"
language: en-us
type: public
encoding: UTF-8
links:
- http://www.legittorrents.info/ # site does not support https ERR_CONNECTION_REFUSED
caps:
categorymappings:
- {id: 1, cat: Movies, desc: "Movies"}
- {id: 2, cat: Audio, desc: "Music"}
- {id: 3, cat: PC/Games, desc: "Games"}
- {id: 4, cat: Other, desc: "Other"}
- {id: 5, cat: TV/Anime, desc: "Anime"}
- {id: 6, cat: Books, desc: "Books"}
- {id: 7, cat: PC/0day, desc: "Apps Win"}
- {id: 8, cat: PC, desc: "Apps Linux"}
- {id: 9, cat: PC/Mac, desc: "Apps Mac"}
- {id: 13, cat: TV, desc: "TV"}
- {id: 14, cat: PC, desc: "Linux Distributions"}
modes:
search: [q]
2019-12-17 07:46:08 +00:00
settings:
- name: sort
type: select
label: Sort requested from site
default: "3"
options:
"3": "created"
"5": "seeders"
2020-03-06 20:49:09 +00:00
"4": "size"
2019-12-17 07:46:08 +00:00
"2": "title"
- name: type
type: select
label: Order requested from site
default: "2"
options:
"2": "desc"
"1": "asc"
search:
paths:
# http://www.legittorrents.info/index.php?page=torrents&search=windows&category=0&active=0
- path: index.php
inputs:
2019-12-17 07:46:08 +00:00
page: torrents
search: "{{ .Keywords }}"
2019-12-17 07:46:08 +00:00
category: "{{ range .Categories }}{{.}};{{end}}"
# 0 all 1 active 2 deadonly
active: 1
2020-03-06 20:49:09 +00:00
order: "{{ .Config.sort }}"
by: "{{ .Config.type }}"
2019-12-17 07:46:08 +00:00
rows:
selector: table table table.lista > tbody > tr:has(a[href^="download.php?id="])
2019-12-17 07:46:08 +00:00
fields:
category:
selector: a[href^="index.php?page=torrents&category="]
attribute: href
filters:
- name: querystring
args: category
title:
selector: a[title][href^="index.php?page=torrent-details&id="]
details:
selector: a[title][href^="index.php?page=torrent-details&id="]
attribute: href
download:
selector: a[href^="download.php?id="]
attribute: href
date:
selector: td time
attribute: datetime
filters:
- name: dateparse
args: "2006-01-02"
seeders:
selector: td:nth-of-type(5)
leechers:
selector: td:nth-of-type(6)
grabs:
selector: td:nth-of-type(7)
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# xbtit