From fc8ebdca92e887e56e45e2d02ab52fc8667f4a2d Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 25 Mar 2020 19:32:46 +1300 Subject: [PATCH] add turkseed a Turkish private site. resolves #7753 --- README.md | 1 + src/Jackett.Common/Definitions/turkseed.yml | 158 ++++++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 src/Jackett.Common/Definitions/turkseed.yml diff --git a/README.md b/README.md index d06cedc50..31dee2167 100644 --- a/README.md +++ b/README.md @@ -480,6 +480,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * TotallyKids (TK) * TranceTraffic * Trezzor + * TurkSeed * TurkTorrent (TT) * Twilight Torrents * Twilights Zoom diff --git a/src/Jackett.Common/Definitions/turkseed.yml b/src/Jackett.Common/Definitions/turkseed.yml new file mode 100644 index 000000000..014e6f1e8 --- /dev/null +++ b/src/Jackett.Common/Definitions/turkseed.yml @@ -0,0 +1,158 @@ +--- + site: turkseed + name: TurkSeed + description: "TurkSeed (Aturk) is a TURKISH Private Torrent Tracker for MOVIES / TV / GENERAL" + language: tr-TR + type: private + encoding: UTF-8 + links: + - https://turkseed.com/ + + caps: + categorymappings: + - {id: 46, cat: Movies/3D, desc: "3D"} + - {id: 47, cat: Movies/UHD, desc: "4K"} + - {id: 61, cat: PC/Phone-Android, desc: "Android"} + - {id: 48, cat: TV/Anime, desc: "Animasyon"} + - {id: 59, cat: PC, desc: "İşletim Sistemi"} + - {id: 40, cat: TV/Documentary, desc: "Belgesel"} + - {id: 49, cat: Movies/BluRay, desc: "Bluray"} + - {id: 50, cat: Movies, desc: "Boxset"} + - {id: 4, cat: Other, desc: "Diğer"} + - {id: 42, cat: Movies, desc: "Dini"} + - {id: 51, cat: Movies/DVD, desc: "DVD"} + - {id: 41, cat: Books/Ebook, desc: "E-Kitap"} + - {id: 64, cat: Books, desc: "Eğitim"} + - {id: 55, cat: Audio/Lossless, desc: "FLAC"} + - {id: 52, cat: Movies/HD, desc: "HD"} + - {id: 26, cat: PC/Games, desc: "Oyunlar"} + - {id: 30, cat: PC, desc: "Programlar"} + - {id: 53, cat: Movies/SD, desc: "SD"} + - {id: 54, cat: Movies, desc: "Türk Filmi"} + - {id: 58, cat: Audio/Video, desc: "Video Klip"} + - {id: 63, cat: Movies, desc: "Vip Film"} + - {id: 62, cat: Audio, desc: "Vip Ses Dosyaları"} + - {id: 43, cat: TV, desc: "Yabancı Dizi"} + - {id: 57, cat: Movies, desc: "Yabancı Müzik"} + - {id: 45, cat: TV, desc: "Yarışma - Show"} + - {id: 44, cat: TV, desc: "Yerli Dizi"} + - {id: 56, cat: Audio, desc: "Yerli Müzik"} + + modes: + search: [q, imdbid] + tv-search: [q, season, ep, imdbid] + movie-search: [q, imdbid] + + settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: sort + type: select + label: Sort requested from site + default: "added" + options: + "added": "created" + "seeders": "seeders" + "size": "size" + "name": "title" + - name: type + type: select + label: Order requested from site + default: "desc" + options: + "desc": "desc" + "asc": "asc" + + login: + path: login.php + method: form + form: form[action="takelogin.php"] + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + logout: "" + submit: "GİRİŞ" + error: + - selector: table:contains("HATA") + test: + path: index.php + selector: a[href*="/logout.php?logouthash="] + + download: + before: + path: takethanks.php + method: post + inputs: + torrentid: "{{ .DownloadUri.Query.id }}" + selector: a[href*="/download.php?id="] + attribute: href + + search: + paths: + - path: browse.php + inputs: + do: search + keywords: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" + # t_name T_description t_both t_uploader t_genre + search_type: "{{ if .Query.IMDBID }}t_genre{{else}}t_name{{end}}" + category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0{{end}}" + include_dead_torrents: yes + sort: "{{ .Config.sort }}" + order: "{{ .Config.type }}" + # does not return imdb link in results + + rows: + selector: table.sortable tr:has(a[href*="/download.php?id="]) + + fields: + category: + selector: a[href*="/browse.php?category="] + attribute: href + filters: + - name: querystring + args: category + title: + # abbreviated title + selector: a[href*="/details.php?id="] + title: + selector: div.tooltip-content > div + optional: true + details: + selector: a[href*="/details.php?id="] + attribute: href + # rows have download but site requires thanks so we use dl from details + download: + selector: a[href*="/details.php?id="] + attribute: href + banner: + selector: img[src*="/torrents/images/"] + attribute: src + date: + selector: td:nth-child(2) + filters: + - name: regexp + args: "(\\d{2}-\\d{2}-\\d{4} \\d{2}:\\d{2})" + - name: dateparse + args: "02-01-2006 15:04" + size: + selector: td:nth-last-child(5) + grabs: + selector: td:nth-last-child(4) + seeders: + selector: td:nth-last-child(3) + leechers: + selector: td:nth-last-child(2) + downloadvolumefactor: + case: + img[src$="_flags/freedownload.gif"]: 0 + img[src$="_flags/silverdownload.gif"]: 0.5 + "*": 1 + uploadvolumefactor: + case: + img[src$="_flags/x2.gif"]: 2 + "*": 1 +# TS Special Edition v.7.5