1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-30 11:47:28 +00:00

32pages: removed, site has closed. resolves #1448 (#10182)

This commit is contained in:
ilike2burnthing 2020-11-12 15:27:41 +00:00 committed by GitHub
parent b3187fbc95
commit 09d8e43bf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 150 deletions

View file

@ -224,7 +224,6 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
* 0day.kiev
* 1ptbar
* 2 Fast 4 You
* 32Pages (32P)
* 3ChangTrai (3CT) [![(invite needed)][inviteneeded]](#)
* 3D Torrents (3DT) [![(invite needed)][inviteneeded]](#)
* 3evils

View file

@ -1,149 +0,0 @@
# Because API is broken we use screen scraping instead of the generic Gazelle based approach
---
id: 32pages
name: 32Pages
description: "32Pages (32P) is a Private Torrent Tracker for comic books/graphic novels"
language: en-us
type: private
encoding: UTF-8
links:
- https://32pag.es/
caps:
categories:
"Comics": Books/Comics
modes:
search: [q]
book-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: 2facode
type: text
label: 2FA code
- name: info_2fa
type: info
label: "About 2FA code"
default: "Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the 32Pages Web Site. Otherwise just leave it empty."
- name: lockip
type: select
label: "Lock session to my IP address"
default: 1
options:
1: yes
0: no
- name: sort
type: select
label: Sort requested from site
default: time
options:
time: created
seeders: seeders
size: size
name: title
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
- name: info
type: info
label: Results Per Page
default: For best results, your search query has to be <b>as specific as possible</b> (only <b>first 100</b> torrents will be displayed).
login:
path: login
method: post
path: login.php
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
twostep_pub: "{{ .Config.2facode }}"
keeplogged: 1
lockip: "{{ .Config.lockip }}"
error:
- selector: "#formerror"
test:
path: torrents.php
selector: "#nav_userinfo"
search:
paths:
- path: torrents.php
# site displays just 25 results per page, no profile options found to change this, so we attempt to fetch 4 pages
- path: torrents.php
inputs:
page: 2
- path: torrents.php
inputs:
page: 3
- path: torrents.php
inputs:
page: 4
inputs:
searchstr: "{{ .Keywords }}"
order_by: "{{ .Config.sort}}"
order_way: "{{ .Config.type}}"
disablegrouping: 1
rows:
selector: table#torrent_table > tbody > tr[class^="torrent"]
fields:
_grouptitle:
selector: a[href^="torrents.php?id="]
_language:
selector: img[class^="flag"]
attribute: alt
optional: true
title:
selector: a[title="View Torrent"]
filters:
- name: prepend
args: "{{.Result._grouptitle}} - "
- name: replace
args: ["/ /", "/"] # removes slash left after freeleech images
- name: append
args: "{{if .Result._language}} [{{.Result._language}}]{{else}}{{end}}"
category:
text: Comics
details:
selector: a[title="View Torrent"]
attribute: href
download:
selector: a[title="Download"]
attribute: href
size:
selector: td[headers="browse_size"]
files:
selector: td[headers="browse_files"]
grabs:
selector: td[headers="browse_snatches"]
seeders:
selector: td[headers="browse_seeders"]
leechers:
selector: td[headers="browse_leechers"]
date:
selector: td[headers="browse_time"] > span[title]
attribute: title
filters:
- name: dateparse
args: "Apr 04 2020, 16:24"
downloadvolumefactor:
case:
img.fl-diamond: 0
img.fl-sapphire: 0
img.fl-emerald: 0
img.fl-ruby: 0
"*": 1
uploadvolumefactor:
text: 1
# gazelle

View file

@ -261,6 +261,7 @@ namespace Jackett.Updater
"CsQuery.dll",
"CurlSharp.dll",
"CurlSharp.pdb",
"Definitions/32pages.yml",
"Definitions/420files.yml",
"Definitions/academictorrents.yml",
"Definitions/alein.yml",