diff --git a/src/Jackett.Common/Definitions/sharkpt.yml b/src/Jackett.Common/Definitions/sharkpt.yml index fc3b9513b..5e5c04b25 100644 --- a/src/Jackett.Common/Definitions/sharkpt.yml +++ b/src/Jackett.Common/Definitions/sharkpt.yml @@ -11,14 +11,14 @@ links: caps: categorymappings: - {id: 401, cat: Movies, desc: "Movies/电影"} - - {id: 404, cat: TV/Documentary, desc: "Documentaries/纪录片"} - - {id: 405, cat: TV/Anime, desc: "Animations/动漫"} - {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: 409, cat: Other, desc: "Misc/其他"} - {id: 408, cat: Audio, desc: "Music/HQ Audio"} + - {id: 409, cat: Other, desc: "Misc/其他"} modes: search: [q] @@ -85,86 +85,63 @@ search: notnewword: 1 rows: - selector: table.torrents > tbody > tr:has(a[href^="details.php?id="]) + selector: div.torrent-item fields: category: - selector: a[href^="?cat="] - attribute: href - filters: - - name: querystring - args: cat - title_default: - selector: a[href^="details.php?id="] + selector: div.torrent-category + case: + img[src$="movies.png"]: 401 + img[src$="tvseries.png"]: 402 + img[src$="tvshows.png"]: 403 + img[src$="doc.png"]: 404 + img[src$="anime.png"]: 405 + img[src$="mv.png"]: 406 + img[src$="sports.png"]: 407 + img[src$="hqaudio.png"]: 408 + img[src$="misc.png"]: 409 title: - selector: a[title][href^="details.php?id="] - attribute: title - optional: true - default: "{{ .Result.title_default }}" + 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: - selector: a[href^="download.php?id="] - attribute: href - poster: - selector: img[data-src] - attribute: data-src - imdbid: - # site currently only has a badge and rating, the id is not present. just in case a future update. - selector: a[href*="imdb.com/title/tt"] - attribute: href - doubanid: - # site currently only has a badge and rating, the id is not present. just in case a future update. - selector: a[href*="movie.douban.com/subject/"] - attribute: href - date_elapsed: - # time type: time elapsed (default) - selector: td.rowfollow:nth-child(4) > span[title] + text: "download.php?id={{ .Result._id }}" + description: + selector: div.torrent-subtitle + date: + selector: div.torrent-when > span attribute: title - optional: true filters: - name: append args: " +08:00" # CST - name: dateparse args: "yyyy-MM-dd HH:mm:ss zzz" - date_added: - # time added - selector: td.rowfollow:nth-child(4):not(:has(span)) - optional: true - filters: - - name: append - args: " +08:00" # CST - - name: dateparse - args: "yyyy-MM-ddHH:mm:ss zzz" - date: - text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}" size: - selector: td.rowfollow:nth-child(5) + selector: div.torrent-size seeders: - selector: td.rowfollow:nth-child(6) + selector: div.torrent-seeders leechers: - selector: td.rowfollow:nth-child(7) + selector: div.torrent-leechers grabs: - selector: td.rowfollow:nth-child(8) + selector: div.torrent-snatches downloadvolumefactor: case: - img.pro_free: 0 - img.pro_free2up: 0 - img.pro_50pctdown: 0.5 - img.pro_50pctdown2up: 0.5 - img.pro_30pctdown: 0.3 + "span.s-tag:contains(\"FREE\")": 0 + "span.s-tag:contains(\"50%\")": 0.5 + "span.s-tag:contains(\"30%\")": 0.3 "*": 1 uploadvolumefactor: case: - img.pro_50pctdown2up: 2 - img.pro_free2up: 2 - img.pro_2up: 2 + "span.s-tag:contains(\"2X\")": 2 "*": 1 minimumseedtime: # 7 day (as seconds = 7 x 24 x 60 x 60) text: 604800 - description: - selector: td.rowfollow:nth-child(2) - remove: a, img # NexusPHP v1.8.0 2023-02-08