turktorrent: new layout and categories. resolves #6232

This commit is contained in:
Garfield69 2019-10-23 10:27:56 +13:00
parent 97ecf0621a
commit d77da3c3a7
1 changed files with 113 additions and 93 deletions

View File

@ -2,9 +2,9 @@
site: turktorrent site: turktorrent
name: TurkTorrent name: TurkTorrent
description: "TurkTorrent (TT) is a TURKISH Private Torrent Tracker for MOVIES / TV / GENERAL" description: "TurkTorrent (TT) is a TURKISH Private Torrent Tracker for MOVIES / TV / GENERAL"
language: tr language: tr-TR
type: private type: private
encoding: ISO-8859-9 encoding: UTF-8
links: links:
- https://turktorrent.us/ - https://turktorrent.us/
legacylinks: legacylinks:
@ -13,79 +13,71 @@
caps: caps:
categorymappings: categorymappings:
# animation - {id: 36, cat: Movies, desc: "Film"}
- {id: 3, cat: Movies, desc: "Animasyon GENEL"} - {id: 59, cat: Movies, desc: "Türk Filmi"}
- {id: 40, cat: Movies, desc: "Animasyon Turkce"} - {id: 61, cat: Movies/3D, desc: "3D"}
- {id: 41, cat: Movies, desc: "Animasyon TR Sub"} - {id: 18, cat: Movies, desc: "Anime - Çizgi Türkçe"}
# Documentary - {id: 19, cat: Movies, desc: "Anime - Çizgi TR Altyazı"}
- {id: 16, cat: TV/Documentary, desc: "Belgesel GENEL"} - {id: 20, cat: Movies, desc: "Boxset Türkçe"}
- {id: 42, cat: TV/Documentary, desc: "Belgesel Türkçe"} - {id: 21, cat: Movies, desc: "Boxset Tr Altyzı"}
- {id: 43, cat: TV/Documentary, desc: "Belgesel TR Sub"} - {id: 22, cat: Movies/DVD, desc: "DVD Disk Türkçe"}
# Religious - {id: 23, cat: Movies/DVD, desc: "DVD Disk Tr Altyazı"}
- {id: 22, cat: TV/Other, desc: "Dini"} - {id: 24, cat: Movies/BluRay, desc: "Bluray Disk Türkçe"}
# TV - {id: 25, cat: Movies/BluRay, desc: "Bluray Disk Tr Altyazı"}
- {id: 7, cat: TV, desc: "Dizi ve Show"} - {id: 26, cat: Movies/UHD, desc: "4K UHD Disk Türkçe"}
- {id: 133, cat: TV, desc: "Dizi BoxSet"} - {id: 27, cat: Movies/UHD, desc: "4K UHD Disk Tr Altyazı"}
- {id: 35, cat: TV, desc: "Dizi Yabancı (Orj-Dub-Sub)"} - {id: 28, cat: Movies/HD, desc: "X265 Türkçe"}
- {id: 34, cat: TV, desc: "Dizi Yerli (Dizi - TV Show)"} - {id: 29, cat: Movies/HD, desc: "X265 Tr Altyazı"}
# Other - {id: 30, cat: Movies/HD, desc: "X264 Türkçe"}
- {id: 29, cat: Other, desc: "Diğer"} - {id: 37, cat: Movies/HD, desc: "X264 Tr Altyazı"}
- {id: 129, cat: Other, desc: "Diğer E-Kitap"} - {id: 31, cat: TV, desc: "Dizi"}
- {id: 122, cat: Other, desc: "Diğer Resimler"} - {id: 32, cat: TV, desc: "Yerli Dizi"}
- {id: 126, cat: Other, desc: "Diğer Spor"} - {id: 33, cat: TV, desc: "Yabancı Orjinal Dil / Tr Dublaj Dizi"}
# Training Presentations - {id: 34, cat: TV, desc: "Dizi Boxset"}
- {id: 62, cat: Other, desc: "Eğitim Sunumlari"} - {id: 35, cat: TV, desc: "Netflix"}
# Movies - {id: 41, cat: TV, desc: "Anime - Çizgi"}
- {id: 124, cat: Movies, desc: "Filmler GENEL"} - {id: 39, cat: TV, desc: "Film"}
- {id: 98, cat: Movies/3D, desc: "Filmler 3D Türkçe Dublaj"} - {id: 38, cat: TV, desc: "Dizi"}
- {id: 99, cat: Movies/3D, desc: "Filmler 3D Yabancı TR Sub"} - {id: 40, cat: TV, desc: "Belgesel"}
- {id: 134, cat: Movies/UHD, desc: "Filmler 4K UHD"} - {id: 42, cat: Audio, desc: "Müzik"}
- {id: 125, cat: Movies/Foreign, desc: "Filmler Almanca"} - {id: 43, cat: Audio, desc: "Türkçe Müzik"}
- {id: 88, cat: Movies/BluRay, desc: "Filmler Blu-ray Disc"} - {id: 44, cat: Audio, desc: "Yabancı Müzik"}
- {id: 132, cat: Movies/Other, desc: "Filmler Bollywood"} - {id: 45, cat: Audio, desc: "Seri Albüm - Diskografi"}
- {id: 96, cat: Movies, desc: "Filmler BoxSet Türk Filmi"} - {id: 2, cat: Console, desc: "Oyun"}
- {id: 30, cat: Movies, desc: "Filmler Boxset Türkçe Dublaj"} - {id: 46, cat: Console, desc: "PC"}
- {id: 33, cat: Movies, desc: "Filmler BoxSet Yabancı TR Sub"} - {id: 3, cat: Console, desc: "Sony PS"}
- {id: 36, cat: Movies/DVD, desc: "Filmler DVD (Dijital Video Disk)"} - {id: 4, cat: Console, desc: "Wii"}
- {id: 127, cat: Movies, desc: "Filmler IMDB Top 250"} - {id: 14, cat: Console, desc: "XboX"}
- {id: 137, cat: Movies, desc: "Filmler Türk Filmi"} - {id: 16, cat: Console, desc: "Nintendo"}
- {id: 66, cat: Movies/HD, desc: "Filmler X264 Türkçe Dublaj"} - {id: 47, cat: PC, desc: "Programlar"}
- {id: 67, cat: Movies/HD, desc: "Filmler X264 Yabancı TR Sub"} - {id: 48, cat: PC, desc: "Windows"}
- {id: 130, cat: Movies/HD, desc: "Filmler x265 Filmler"} - {id: 49, cat: PC, desc: "MaC"}
- {id: 51, cat: Movies/SD, desc: "Filmler XviD Türkçe Dublaj"} - {id: 50, cat: PC, desc: "Mobile"}
- {id: 52, cat: Movies/SD, desc: "Filmler XviD Yabancı TR Sub"} - {id: 51, cat: Other, desc: "Diğer"}
# Music - {id: 62, cat: Other, desc: "Eğitim"}
- {id: 13, cat: Audio, desc: "Müzik GENEL"} - {id: 52, cat: Other, desc: "Belgesel"}
- {id: 94, cat: Audio, desc: "Müzik Discography Türkçe"} - {id: 53, cat: Other, desc: "Dini Yayınlar"}
- {id: 47, cat: Audio, desc: "Müzik Discography Yabancı"} - {id: 54, cat: Other, desc: "Spor"}
- {id: 13, cat: Audio, desc: "Müzik Türkçe"} - {id: 55, cat: Other, desc: "Duvar Kağıtları"}
- {id: 13, cat: Audio/Video, desc: "Müzik Video Klip"} - {id: 56, cat: Other, desc: "Diğer Her Şey"}
- {id: 13, cat: Audio/Foreign, desc: "Müzik Yabancı"}
# Netflix
- {id: 138, cat: Movies/WEBDL, desc: "Netflix GENEL"}
- {id: 142, cat: Movies/WEBDL, desc: "Netflix Animasyon"}
- {id: 141, cat: Movies/WEBDL, desc: "Netflix Belgesel"}
- {id: 139, cat: Movies/WEBDL, desc: "Netflix Dizi"}
- {id: 140, cat: Movies/WEBDL, desc: "Netflix Film"}
# Games
- {id: 24, cat: Console, desc: "Oyun GENEL"}
- {id: 121, cat: PC/Mac, desc: "Oyun Mac OS"}
- {id: 92, cat: PC/Games, desc: "Oyun PC"}
- {id: 73, cat: Console/PS3, desc: "Oyun PS3"}
- {id: 93, cat: Console/Wii, desc: "Oyun Wii"}
- {id: 91, cat: Console/Xbox 360, desc: "Oyun Xbox360"}
# Software
- {id: 25, cat: PC, desc: "Program GENEL"}
- {id: 123, cat: PC/Phone-Other, desc: "Program Mobile"}
- {id: 103, cat: PC/0day, desc: "Program PC"}
# VIP
- {id: 131, cat: Other, desc: "Vip"}
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep] tv-search: [q, season, ep]
movie-search: [q] movie-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: info
type: info
label: Layout
default: "<ol><li>Only the English Classic profile is supported.<li>Make sure to set the <b>Torrent Listing (Listeleme Biçimi)</b> option in your profile to <b>Classic (Klasik)</b><li>And set the <b>Language (Dil)</b> to <b>English</b><li>Using the <i>Modern</i> theme will prevent results, and using <i>Turkish</i> will prevent upload dates.</ol>"
login: login:
path: ?p=home&pid=1 path: ?p=home&pid=1
method: form method: form
@ -117,52 +109,80 @@
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "$1.sezon $2.blm"] args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "$1.sezon $2.blm"]
inputs: inputs:
p: torrents p: torrents
pid: 10 pid: 32
$raw: "{{range .Categories}}&cid[]={{.}}{{end}}" $raw: "{{range .Categories}}cid[]={{.}}&{{end}}"
keywords: "{{ .Keywords }}" keywords: "{{ .Keywords }}"
# name description both uploader # name description both uploader
search_type: name search_type: name
rows: rows:
selector: table#sortabletable tbody tr:has(div[id^="port-target-"]) selector: table#torrents_table_classic > tbody > tr:has(td.torrent_name)
fields: fields:
category:
selector: div.category_image > a
attribute: href
filters:
- name: querystring
args: cid
title: title:
selector: div[id^="port-target-"] a selector: a[href*="?p=torrents&pid=10&action=details"]
filters: filters:
- name: re_replace # X.sezon X.blm to S01E01 - name: re_replace # X.sezon X.blm to S01E01
args: ["(?i)\\b(\\d+).sezon\\s(\\d+).blm\\b", "S$1E$2"] args: ["(?i)\\b(\\d+).sezon\\s(\\d+).blm\\b", "S$1E$2"]
- name: re_replace # switch (dd.mm.yyyy) to mm.dd.yyyy - name: re_replace # switch (dd.mm.yyyy) to mm.dd.yyyy
args: ["\\((\\d+)\\.(\\d+)\\.(\\d+)\\)", "$2/$1/$3"] args: ["\\((\\d+)\\.(\\d+)\\.(\\d+)\\)", " $2/$1/$3 "]
details: details:
selector: div[id^="port-target-"] a selector: a[href*="?p=torrents&pid=10&action=details"]
attribute: href attribute: href
category:
selector: a[href*="browse.php?category="]
attribute: href
filters:
- name: querystring
args: category
date: date:
selector: td:nth-child(2) div:nth-last-child(1) # within the hour
optional: true
selector: td.torrent_name
attribute: data-time
date:
optional: true
# Uploaded 30-01-2019 15:02 by
selector: td.torrent_name:not(:contains(" at "))
filters: filters:
- name: regexp
args: "Uploaded (.+?) by"
- name: dateparse - name: dateparse
args: "02-01-2006 15:04" args: "02-01-2006 15:04"
date:
optional: true
# Uploaded Friday at 05:11 by
# Uploaded Today at 00:48 by
# Uploaded Yesterday at 23:57 by
selector: td.torrent_name:contains(" at ")
filters:
- name: regexp
args: "Uploaded (.+?) by"
- name: replace
args: [" at ", " "]
download: download:
selector: a[href*="download.php?id="] selector: a[href*="?p=torrents&pid=10&action=download"]
attribute: href
magnet:
optional: true
selector: a[href^="magnet:?xt="]
attribute: href attribute: href
size: size:
selector: td:nth-child(5) selector: a[rel="torrent_size"]
grabs:
selector: td:nth-child(6)
seeders: seeders:
selector: td:nth-child(7) selector: a[rel="torrent_seeders"]
leechers: leechers:
selector: td:nth-child(8) selector: a[rel="torrent_leechers"]
grabs:
selector: a[rel="times_completed"]
banner:
selector: a[rel="fancybox"]
optional: true
attribute: href
downloadvolumefactor: downloadvolumefactor:
case: case:
img[src$="/freedownload.gif"]: "0" "img[title=\"FREE!\"]": 0
img[src$="/silverdownload.gif"]: "0.5" "img[title=\"Download Multiplier: 0.5\"]": 0.5
"*": "1" "*": 1
uploadvolumefactor: uploadvolumefactor:
case: case:
img[src$="/x2.gif"]: "2" "img[title=\"Upload Multiplier: 2\"]": 2
"*": "1" "*": 1