From 0806e4182b40e2cc3fe43fd33eebde1de993a1c3 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 24 May 2023 15:46:08 +1200 Subject: [PATCH] sharkpt: removed. resolves #13904 --- README.md | 1 - src/Jackett.Common/Definitions/sharkpt.yml | 153 --------------------- src/Jackett.Updater/Program.cs | 1 + 3 files changed, 1 insertion(+), 154 deletions(-) delete mode 100644 src/Jackett.Common/Definitions/sharkpt.yml diff --git a/README.md b/README.md index fad95d5a3..8b165ada7 100644 --- a/README.md +++ b/README.md @@ -510,7 +510,6 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht * Secret Cinema * SeedFile * Shareisland - * SharkPT * Shazbat [![(invite needed)][inviteneeded]](#) * SiamBIT * SkipTheCommercials diff --git a/src/Jackett.Common/Definitions/sharkpt.yml b/src/Jackett.Common/Definitions/sharkpt.yml deleted file mode 100644 index 785ac5bf9..000000000 --- a/src/Jackett.Common/Definitions/sharkpt.yml +++ /dev/null @@ -1,153 +0,0 @@ ---- -id: sharkpt -name: SharkPT -description: "SharkPT is a CHINESE Private Torrent Tracker for MOVIES / TV / GENERAL" -language: zh-CN -type: private -encoding: UTF-8 -links: - - https://sharkpt.net/ - -caps: - categorymappings: - - {id: 401, cat: Movies, desc: "Movies/电影"} - - {id: 402, cat: TV, desc: "TV Series/电视连续剧"} - - {id: 403, cat: TV, desc: "TV Shows/综艺"} - - {id: 404, cat: TV/Documentary, desc: "Documentaries/纪录片"} - - {id: 405, cat: TV/Anime, desc: "Animations/动漫"} - - {id: 406, cat: Audio/Video, desc: "MusicVideo/音乐视频"} - - {id: 407, cat: TV/Sport, desc: "Sports/体育"} - - {id: 408, cat: Audio, desc: "Music/HQ Audio"} - - {id: 409, cat: Other, desc: "Misc/其他"} - - modes: - search: [q] - tv-search: [q, season, ep, imdbid, doubanid] - movie-search: [q, imdbid, doubanid] - music-search: [q] - -settings: - - name: cookie - type: text - label: Cookie - - name: info - type: info - label: How to get the Cookie - default: "
  1. Login to this tracker with your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button (Chrome Browser) or HTML button (FireFox)
  5. Refresh the page by pressing F5
  6. Click on the first row entry
  7. Select the Headers tab on the Right panel
  8. Find 'cookie:' in the Request Headers section
  9. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" - - name: freeleech - type: checkbox - label: Search freeleech only - default: false - - name: sort - type: select - label: Sort requested from site - default: 4 - options: - 4: created - 7: seeders - 5: size - 1: title - - name: type - type: select - label: Order requested from site - default: desc - options: - desc: desc - asc: asc - - name: info_tpp - type: info - label: Results Per Page - default: For best results, change the Torrents per page: setting to 100 on your account profile. - -login: - method: cookie - inputs: - cookie: "{{ .Config.cookie }}" - test: - path: index.php - -search: - paths: - - path: torrents.php - inputs: - $raw: "{{ range .Categories }}cat{{.}}=1&{{end}}" - search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }} {{ else }}{{ .Keywords }}{{ end }}{{ if .Query.DoubanID }}{{ .Query.DoubanID }}{{ else }}{{ end }}" - # 0 incldead, 1 active, 2 dead - incldead: 0 - # 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30% - spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}" - # 0 title, 1 descr, 3 uploader, 4 imdburl (4 does not appear to work) - search_area: "{{ if or .Query.IMDBID .Query.DoubanID }}1{{ else }}0{{ end }}" - # 0 AND, 1 OR, 2 exact - search_mode: 0 - sort: "{{ .Config.sort }}" - type: "{{ .Config.type }}" - notnewword: 1 - - rows: - selector: div.torrent-item - - fields: - category: - selector: div.torrent-category - case: - img[src$="movies64.png"]: 401 - img[src$="tvseries64.png"]: 402 - img[src$="tvshows64.png"]: 403 - img[src$="doc64.png"]: 404 - img[src$="anime64.png"]: 405 - img[src$="mv64.png"]: 406 - img[src$="sports64.png"]: 407 - img[src$="hqaudio64.png"]: 408 - img[src$="misc64.png"]: 409 - title: - selector: a[href^="details.php?id="] - details: - selector: a[href^="details.php?id="] - attribute: href - _id: - selector: a[href^="details.php?id="] - attribute: href - filters: - - name: querystring - args: id - download: - text: "download.php?id={{ .Result._id }}" - imdbid: - selector: shark-tag-group[onClick*="imdb.com/title/tt"] - attribute: onClick - doubanid: - selector: shark-tag-group[onClick*="movie.douban.com/subject/"] - attribute: onClick - description: - selector: div.torrent-subtitle - date: - selector: div.torrent-when > span - attribute: title - filters: - - name: append - args: " +08:00" # CST - - name: dateparse - args: "yyyy-MM-dd HH:mm:ss zzz" - size: - selector: div.torrent-size - seeders: - selector: div.torrent-seeders - leechers: - selector: div.torrent-leechers - grabs: - selector: div.torrent-snatches - downloadvolumefactor: - case: - "span.s-tag:contains(\"FREE\")": 0 - "span.s-tag:contains(\"50%\")": 0.5 - "span.s-tag:contains(\"30%\")": 0.3 - "*": 1 - uploadvolumefactor: - case: - "span.s-tag:contains(\"2X\")": 2 - "*": 1 - minimumseedtime: - # 7 day (as seconds = 7 x 24 x 60 x 60) - text: 604800 -# NexusPHP Standard v1.5 Beta 4 2010-09-19 diff --git a/src/Jackett.Updater/Program.cs b/src/Jackett.Updater/Program.cs index 736a0ce1b..c5ea69ddf 100644 --- a/src/Jackett.Updater/Program.cs +++ b/src/Jackett.Updater/Program.cs @@ -532,6 +532,7 @@ namespace Jackett.Updater "Definitions/sharespacedb.yml", "Definitions/shareuniversity.yml", "Definitions/sharingue.yml", + "Definitions/sharkpt.yml", "Definitions/shellife.yml", "Definitions/shokweb.yml", "Definitions/skipthecommercials.yml", // switch to *-API #8682