add 4thd a private site. resolves #5775

This commit is contained in:
Garfield69 2019-08-04 08:42:47 +12:00
parent 0534d2e273
commit 64bb6bf905
2 changed files with 115 additions and 0 deletions

View File

@ -132,6 +132,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/
* 2 Fast 4 You
* 3D Torrents (3DT)
* 3evils
* 4thD (4th Dimension)
* 720pier
* Abnormal
* Acid Lounge (A-L)

View File

@ -0,0 +1,114 @@
---
site: 4thd
name: 4thD
description: "4th Dimension is a Private Torrent Tracker for MOVIES / TV / GENERAL"
language: en-us
encoding: UTF-8
type: private
links:
- https://4thd.xyz/
caps:
categorymappings:
- {id: 38, cat: Movies, "Movie Pack"}
- {id: 36, cat: Movies, "Movies/Classic Films"}
- {id: 13, cat: Movies, "Movies/Documentary"}
- {id: 21, cat: Movies/Foreign, "Movies/Foreign"}
- {id: 27, cat: Movies/HD, "MoviesHD"}
- {id: 29, cat: Movies/SD, "Movies/SD"}
- {id: 26, cat: Movies/SD, "Movies/XviD"}
- {id: 41, cat: TV/FOREIGN, "Foreign tv"}
- {id: 40, cat: TV, "Mini-Series"}
- {id: 43, cat: TV/HD, "TV H265"}
- {id: 42, cat: TV, "TV Movie"}
- {id: 4, cat: TV/HD, "TV/HD-x720"}
- {id: 14, cat: TV, "TV/Packs"}
- {id: 2, cat: TV/SD, "TV/SD MP4/mkv"}
- {id: 31, cat: TV/SD, "TV/XviD"}
- {id: 18, cat: PC/Games, "Games/PC"}
- {id: 12, cat: Audio/Lossless, "Music/FLAC"}
- {id: 15, cat: Audio/MP3, "Music/MP3"}
- {id: 37, cat: Audio, "Radio"}
- {id: 9, cat: PC/0day, "Apps/PC"}
- {id: 34, cat: Audio/Audiobook, "Audiobooks"}
- {id: 25, cat: Books/Ebook, "eBooks"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
login:
path: login.php
method: form
form: form#loginform
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
keeplogged: 1
error:
- selector: form#loginform .warning
test:
path: index.php
selector: a[href^="logout.php?auth="]
search:
paths:
- path: torrents.php
inputs:
# https://4thd.xyz/torrents.php?order_by=time&order_way=desc&filter_freeleech=1&title=twilight+zone&search_type=1&taglist=&tags_type=0
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
order_by: time
order_way: desc
# 0 all 1 onlyfree
filter_freeleech: 0
title: "{{ .Keywords }}"
search_type: 1
taglist: ""
tags_type: 0
rows:
selector: table#torrent_table > tbody > tr.torrent
fields:
category:
selector: td.cats_col div a
attribute: href
filters:
- name: regexp
args: "\\[(\\d+)\\]"
title:
selector: a[href^="torrents.php?id="]
details:
selector: a[href^="torrents.php?id="]
attribute: href
download:
selector: a[href^="torrents.php?action=download&id="]
attribute: href
description:
selector: div.tags
banner:
selector: td:nth-child(2) script
optional: true
filters:
- name: regexp
args: "src=(.*?)>"
- name: re_replace
args: ["\\\\", ""]
files:
selector: td:nth-child(3)
date:
selector: td:nth-child(5)
size:
selector: td:nth-child(6)
grabs:
selector: td:nth-child(7)
seeders:
selector: td:nth-child(8)
leechers:
selector: td:nth-child(9)
downloadvolumefactor:
case:
img[src$="/freedownload.gif"]: 0
"*": 1
uploadvolumefactor:
case:
"*": 1