Jackett/src/Jackett.Common/Definitions/pussytorrents.yml

106 lines
2.1 KiB
YAML
Raw Normal View History

---
id: pussytorrents
name: PussyTorrents
description: "PussyTorrents is a Semi-Private Torrent Tracker for 3X"
language: en-us
type: semi-private
encoding: UTF-8
links:
- https://pussytorrents.org/
caps:
categorymappings:
- {id: 1, cat: XXX, desc: "XXX"}
modes:
search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
2020-10-23 20:01:19 +00:00
default: added
options:
2020-10-23 20:01:19 +00:00
added: created
seeders: seeders
size: size
nameSort: title
- name: type
type: select
label: Order requested from site
2020-10-23 20:01:19 +00:00
default: desc
options:
2020-10-23 20:01:19 +00:00
desc: desc
asc: asc
login:
path: user/account/login/
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
remember_me: on
error:
- selector: div.alert-error
test:
path: /
selector: a[href="/user/account/logout"]
search:
# https://pussytorrents.org/torrents/browse?query=&page=1&order=desc&orderby=added
paths:
- path: torrents/browse
inputs:
query: "{{ .Keywords }}"
page: 1
orderby: "{{ .Config.sort }}"
order: "{{ .Config.type }}"
rows:
selector: table#torrenttable > tbody > tr:has(a[href^="/download/"])
filters:
- name: andmatch
fields:
category:
text: 1
title:
selector: a[href^="/torrent/"]
details:
selector: a[href^="/torrent/"]
attribute: href
download:
selector: a[href^="/download/"]
attribute: href
date:
selector: span.subnote
filters:
- name: replace
args: ["Added on ", ""]
2020-10-10 02:56:19 +00:00
- name: append
args: " +00:00" # GMT
- name: dateparse
2020-10-10 02:56:19 +00:00
args: "2006-01-02 15:04:05 -07:00"
size:
selector: td:nth-last-child(5)
grabs:
selector: td:nth-last-child(4)
filters:
- name: regexp
args: (\d+)
seeders:
selector: td:nth-last-child(3)
leechers:
selector: td:nth-last-child(2)
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a