2020-03-03 16:28:26 +00:00
|
|
|
---
|
2020-05-11 19:59:28 +00:00
|
|
|
id: ptfiles
|
2020-05-10 20:05:19 +00:00
|
|
|
name: PTFiles
|
|
|
|
description: "PTFiles (PTF) is a Private site for TV / MOVIES / GENERAL"
|
|
|
|
language: en-us
|
|
|
|
type: private
|
|
|
|
encoding: windows-1252
|
|
|
|
links:
|
|
|
|
- https://ptfiles.net/
|
2017-03-01 16:30:58 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
caps:
|
|
|
|
categorymappings:
|
|
|
|
- {id: 19, cat: Movies/SD, desc: "Movies/XviD"}
|
|
|
|
- {id: 20, cat: Movies/DVD, desc: "Movies/DVD-R"}
|
|
|
|
- {id: 60, cat: Movies/SD, desc: "Movies/SD X264"}
|
|
|
|
- {id: 23, cat: TV/Anime, desc: "Anime"}
|
|
|
|
- {id: 1, cat: PC/0day, desc: "Apps"}
|
|
|
|
- {id: 55, cat: Books, desc: "Comics"}
|
|
|
|
- {id: 5, cat: Movies/HD, desc: "Movies/720p HD"}
|
|
|
|
- {id: 8, cat: Movies/HD, desc: "Movies/1080p HD"}
|
|
|
|
- {id: 15, cat: Movies/UHD, desc: "Movies/Ultra-HD"}
|
|
|
|
- {id: 44, cat: Movies, desc: "Movies/Packs"}
|
|
|
|
- {id: 69, cat: Books, desc: "E Books"}
|
|
|
|
- {id: 12, cat: Books, desc: "E Learning"}
|
|
|
|
- {id: 11, cat: PC/Mac, desc: "Mac OS"}
|
|
|
|
- {id: 7, cat: TV/SD, desc: "TV/XviD Episodes"}
|
|
|
|
- {id: 42, cat: TV/SD, desc: "TV/SD X264 Episodes"}
|
|
|
|
- {id: 33, cat: TV/HD, desc: "TV/HD Episodes"}
|
|
|
|
- {id: 22, cat: Other, desc: "Misc"}
|
2020-10-28 19:00:48 +00:00
|
|
|
- {id: 24, cat: PC/Mobile-Other, desc: "Mobile"}
|
2020-05-10 20:05:19 +00:00
|
|
|
- {id: 6, cat: Audio, desc: "Music"}
|
|
|
|
- {id: 39, cat: TV, desc: "TV/Seasons"}
|
|
|
|
- {id: 4, cat: PC/Games, desc: "Games/PC"}
|
|
|
|
- {id: 29, cat: Console, desc: "Games/Consoles"}
|
|
|
|
- {id: 9, cat: XXX, desc: "XXX"}
|
2017-03-01 16:30:58 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
modes:
|
2020-10-19 03:56:16 +00:00
|
|
|
search: [q]
|
2020-05-10 20:05:19 +00:00
|
|
|
tv-search: [q, season, ep, imdbid]
|
|
|
|
movie-search: [q, imdbid]
|
|
|
|
music-search: [q]
|
2020-10-17 04:50:47 +00:00
|
|
|
book-search: [q]
|
2020-03-16 04:36:21 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
settings:
|
|
|
|
- name: username
|
|
|
|
type: text
|
|
|
|
label: Username
|
|
|
|
- name: password
|
|
|
|
type: password
|
|
|
|
label: Password
|
2020-09-14 09:10:50 +00:00
|
|
|
- name: freeleech
|
|
|
|
type: checkbox
|
|
|
|
label: Search freeleech only
|
|
|
|
default: false
|
2020-05-10 20:05:19 +00:00
|
|
|
- name: sort
|
|
|
|
type: select
|
|
|
|
label: Sort requested from site
|
2020-10-23 20:01:19 +00:00
|
|
|
default: 4
|
2020-05-10 20:05:19 +00:00
|
|
|
options:
|
2020-10-23 20:01:19 +00:00
|
|
|
4: created
|
|
|
|
7: seeders
|
|
|
|
5: size
|
|
|
|
1: title
|
2020-05-10 20:05:19 +00:00
|
|
|
- name: type
|
|
|
|
type: select
|
|
|
|
label: Order requested from site
|
2020-10-23 20:01:19 +00:00
|
|
|
default: desc
|
2020-05-10 20:05:19 +00:00
|
|
|
options:
|
2020-10-23 20:01:19 +00:00
|
|
|
desc: desc
|
|
|
|
asc: asc
|
2017-03-01 16:30:58 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
login:
|
|
|
|
path: loginproc/
|
|
|
|
method: form
|
|
|
|
form: form#login
|
|
|
|
inputs:
|
|
|
|
username: "{{ .Config.username }}"
|
|
|
|
password: "{{ .Config.password }}"
|
2020-09-14 09:10:50 +00:00
|
|
|
force_ssl: on
|
2020-05-10 20:05:19 +00:00
|
|
|
ssl: ""
|
|
|
|
error:
|
2020-09-14 09:10:50 +00:00
|
|
|
- selector: p.error:contains(strong)
|
2020-05-10 20:05:19 +00:00
|
|
|
test:
|
|
|
|
path: browse.php
|
2017-03-01 16:30:58 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
search:
|
|
|
|
paths:
|
2020-05-13 00:04:17 +00:00
|
|
|
# https://ptfiles.net/browse.php?search=tt3612126&incldead=1&title=1
|
2020-09-14 09:10:50 +00:00
|
|
|
# https://ptfiles.net/browse.php?free=1&search=&incldead=1&title=0
|
2020-05-10 20:05:19 +00:00
|
|
|
- path: browse.php
|
|
|
|
inputs:
|
|
|
|
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
2020-09-14 09:10:50 +00:00
|
|
|
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
|
|
|
|
# 0 active, 1 both, 2 dead, 3 needseed
|
2020-05-10 20:05:19 +00:00
|
|
|
incldead: 0
|
2020-09-14 09:10:50 +00:00
|
|
|
# 0 title, 1 descr, 2 both, 3 genre
|
|
|
|
title: "{{ if .Query.IMDBID }}1{{ else }}0{{ end }}"
|
|
|
|
free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
|
2020-05-10 20:05:19 +00:00
|
|
|
sort: "{{ .Config.sort }}"
|
|
|
|
type: "{{ .Config.type }}"
|
2020-03-16 04:36:21 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
rows:
|
|
|
|
# for some users (don't know why) the table is called tablethree instead of tortable
|
|
|
|
selector: table#tortable > tbody > tr.rowhead, table#tablethree > tbody > tr.rowhead
|
2020-03-16 04:36:21 +00:00
|
|
|
|
2020-05-10 20:05:19 +00:00
|
|
|
fields:
|
|
|
|
# column 3 will be the wait time for new users
|
|
|
|
download:
|
|
|
|
selector: a[href^="dl.php/"]
|
|
|
|
attribute: href
|
|
|
|
title:
|
|
|
|
selector: a.torrentlink
|
|
|
|
attribute: title
|
|
|
|
category:
|
|
|
|
selector: td[onclick*="browse.php?cat="]
|
|
|
|
attribute: onclick
|
|
|
|
filters:
|
|
|
|
- name: querystring
|
|
|
|
args: cat
|
|
|
|
- name: trim
|
|
|
|
args: "'"
|
|
|
|
details:
|
|
|
|
selector: a.torrentlink
|
|
|
|
attribute: href
|
|
|
|
imdb:
|
2020-05-25 03:17:44 +00:00
|
|
|
selector: a[href*="imdb.com/title/tt"]
|
2020-05-10 20:05:19 +00:00
|
|
|
attribute: href
|
2020-11-07 23:43:33 +00:00
|
|
|
poster:
|
2020-05-10 20:05:19 +00:00
|
|
|
selector: a[rel="gallery"]
|
|
|
|
attribute: href
|
|
|
|
files:
|
|
|
|
selector: td:nth-last-child(5)
|
|
|
|
grabs:
|
|
|
|
selector: td:nth-last-child(3) > span
|
|
|
|
filters:
|
|
|
|
- name: regexp
|
|
|
|
args: ([\d\.]+)
|
|
|
|
size:
|
|
|
|
selector: td:nth-last-child(3)
|
|
|
|
remove: span
|
|
|
|
seeders:
|
|
|
|
selector: td:nth-last-child(2) > span > b:nth-child(1)
|
|
|
|
leechers:
|
|
|
|
selector: td:nth-last-child(2) > span > b:nth-child(2)
|
|
|
|
date:
|
2020-10-10 02:23:06 +00:00
|
|
|
# timeago
|
2020-05-10 20:05:19 +00:00
|
|
|
selector: td:nth-child(2) > span > span > small
|
|
|
|
filters:
|
|
|
|
- name: replace
|
|
|
|
args: ["Uploaded: ", ""]
|
|
|
|
downloadvolumefactor:
|
|
|
|
case:
|
2020-09-14 09:10:50 +00:00
|
|
|
"span.tool:contains(\"[FREE]\")": 0
|
|
|
|
"*": 1
|
2020-05-10 20:05:19 +00:00
|
|
|
uploadvolumefactor:
|
2020-09-14 09:10:50 +00:00
|
|
|
text: 1
|
2020-05-10 20:05:19 +00:00
|
|
|
description:
|
|
|
|
selector: td:nth-child(2) > span:has(span > small)
|
|
|
|
remove: span:nth-child(1), span.tool, a[title^="Search all"], br ~ b > small
|
|
|
|
filters:
|
|
|
|
- name: trim
|
|
|
|
args: "/"
|
2020-09-14 09:10:50 +00:00
|
|
|
minimumratio:
|
|
|
|
text: 1.0
|
|
|
|
minimumseedtime:
|
|
|
|
# 2 days (as seconds = 2 x 24 x 60 x 60)
|
|
|
|
text: 172800
|
2020-03-16 04:36:21 +00:00
|
|
|
# TBDev Custom
|