From 00104205c04bda21e60256abaa4d2b8c50a9309a Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 29 Feb 2020 10:01:24 +1300 Subject: [PATCH] =?UTF-8?q?add=20U2=20(U2=E5=88=86=E4=BA=AB=E5=9C=92@?= =?UTF-8?q?=E5=8B=95=E6=BC=AB=E8=8A=B1=E5=9C=92)=20a=20Private=20Chinese?= =?UTF-8?q?=20Anime=20site.=20resolves=20#7337?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + src/Jackett.Common/Definitions/u2.yml | 152 ++++++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 src/Jackett.Common/Definitions/u2.yml diff --git a/README.md b/README.md index 0779c15b8..a0755c8c2 100644 --- a/README.md +++ b/README.md @@ -470,6 +470,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Twilight Torrents * Twilights Zoom * u-torrents (SceneFZ) + * U2 (U2分享園@動漫花園) * UHDBits * UnionGang * UnlimitZ diff --git a/src/Jackett.Common/Definitions/u2.yml b/src/Jackett.Common/Definitions/u2.yml new file mode 100644 index 000000000..d51677620 --- /dev/null +++ b/src/Jackett.Common/Definitions/u2.yml @@ -0,0 +1,152 @@ +--- + site: u2 + name: U2 + description: "U2 (U2分享園@動漫花園) is a CHINESE Private Torrent Tracker for ANIME" + language: zh-cn + type: private + encoding: UTF-8 + links: + - https://u2.dmhy.org/ + + caps: + categorymappings: + - {id: 9, cat: TV/Anime, desc: "U2-Rip"} + - {id: 411, cat: TV/Anime, desc: "U2-RBD"} + - {id: 413, cat: TV/Anime, desc: "Web"} + - {id: 12, cat: TV/Anime, desc: "BDRip"} + - {id: 13, cat: TV/Anime, desc: "DVDRip"} + - {id: 14, cat: TV/Anime, desc: "HDTVRip"} + - {id: 15, cat: TV/Anime, desc: "DVDISO"} + - {id: 16, cat: TV/Anime, desc: "BDMV"} + - {id: 17, cat: TV/Anime, desc: "LQRip"} + - {id: 410, cat: TV/Anime, desc: "外挂结构 (TV Series)"} + - {id: 412, cat: TV/Anime, desc: "加流重灌 (Modded Blu-rays)"} + - {id: 21, cat: Books, desc: "Raw Books"} + - {id: 22, cat: Books, desc: "港译漫画 (HK Books)"} + - {id: 23, cat: Books, desc: "台译漫画 (TW Books)"} + - {id: 30, cat: Audio, desc: "Lossless Music"} + - {id: 40, cat: Other, desc: "Others"} + + modes: + search: [q] + tv-search: [q, season, ep] + + settings: + - name: cookie + type: text + label: Cookie + - name: info + type: info + label: How to get the Cookie + default: "
  1. Login to this tracker in your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button
  5. Refresh the page by pressing F5
  6. Select the Headers tab
  7. Find 'cookie:' in the Request Headers section
  8. Copy & paste the whole cookie string to here
" + - 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" + + login: + method: cookie + inputs: + cookie: "{{ .Config.cookie }}" + test: + path: index.php + selector: a[href^="logout.php?key="] + + search: + paths: + - path: torrents.php + inputs: + $raw: "{{ range .Categories }}cat{{.}}=1&{{end}}" + search: "{{ .Keywords }}" + # 0 incldead 1 active 2 dead + incldead: 0 + # 0 all 1 normal 2 free 3 2x 4 2xfree 5 50% 6 2x50% 7 30% 8 other + spstate: 0 + # 0 title 1 descr 3 uploaded 4 AniDB 5 infohash + search_area: 0 + # 0 AND 1 OR 2 exact + search_mode: 0 + sort: "{{ .Config.sort }}" + type: "{{ .Config.type }}" + + rows: + selector: table.torrents > tbody > tr:has(table.torrentname) + + fields: + category: + selector: a[href^="?cat="] + attribute: href + filters: + - name: querystring + args: cat + title: + selector: a[href^="details.php?id="] + title: + optional: true + selector: a[title][href^="details.php?id="] + attribute: title + details: + selector: a[href^="details.php?id="] + attribute: href + download: + selector: a[href^="download.php?id="] + attribute: href + date: + # time type: time elapsed (default) + selector: td:nth-child(4) > time[title] + attribute: title + optional: true + filters: + - name: append + args: " +08:00" + - name: dateparse + args: "2006-01-02 15:04:05 -07:00" + date: + # time added + selector: td:nth-child(4):not(time[title]) > time + optional: true + filters: + - name: append + args: " +08:00" + - name: dateparse + args: "2006-01-0215:04:05 -07:00" + size: + selector: td:nth-child(5) + seeders: + selector: td:nth-child(6) + leechers: + selector: td:nth-child(7) + grabs: + selector: td:nth-child(8) + downloadvolumefactor: + case: + img.pro_free: 0 + img.pro_free2up: 0 + img.pro_custom: 0 + img.pro_50pctdown: 0.5 + img.pro_50pctdown2up: 0.5 + img.pro_30pctdown: 0.3 + "*": 1 + uploadvolumefactor: + case: + img.pro_50pctdown2up: 2 + img.pro_free2up: 2 + img.pro_2up: 2 + img.pro_custom: 3 + "*": 1 + description: + selector: td:nth-child(2) + remove: a, img +# NexusPHP U2-Revision Standard v1.5 Beta 4