diff --git a/definitions/v10/lemonhd.yml b/definitions/v10/lemonhd.yml new file mode 100644 index 000000000..0420136c4 --- /dev/null +++ b/definitions/v10/lemonhd.yml @@ -0,0 +1,173 @@ +--- +id: lemonhd +name: LemonHD +description: "LemonHD is a CHINESE Private Torrent Tracker for HD MOVIES / TV" +language: zh-CN +type: private +encoding: UTF-8 +links: + - https://lemonhd.club/ +legacylinks: + - https://leaguehd.com/ + - https://lemonhd.org/ + +caps: + categorymappings: + - {id: 401, cat: Movies, desc: "Movies/电影"} + - {id: 411, cat: Audio, desc: "Music/无损音乐"} + - {id: 405, cat: TV/Anime, desc: "Animations/动漫"} + - {id: 406, cat: Audio/Video, desc: "Music Videos/音乐MV"} + - {id: 404, cat: TV/Documentary, desc: "Documentaries/纪录片"} + - {id: 402, cat: TV, desc: "TV Series/剧集"} + - {id: 403, cat: TV, desc: "TV Shows/综艺"} + - {id: 410, cat: Movies/3D, desc: "Movies 3D"} + + modes: + search: [q] + tv-search: [q, season, ep, imdbid, doubanid] + movie-search: [q, imdbid, doubanid] + music-search: [q] + +settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - 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: + path: login.php + method: form + form: form[action="takelogin.php"] + captcha: + type: image + selector: img[alt="CAPTCHA"] + input: imagestring + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + logout: "" + securelogin: "" + ssl: yes + trackerssl: yes + error: + - selector: td.embedded:has(h2:contains("失败")) + test: + path: index.php + selector: a[href$="logout.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 justdead + incldead: 0 + # promotion: 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x 50%, 7 30% + spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}" + # 0 title, 1 descr, 3 uploader, 4 imdb, 5 douban + search_area: "{{ if .Query.IMDBID }}4{{ else }}{{ end }}{{ if .Query.DoubanID }}5{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }}{{ else }}0{{ end }}" + # 0 AND, 1 OR, 2 exact + search_mode: 0 + sort: "{{ .Config.sort }}" + type: "{{ .Config.type }}" + notnewword: 1 + + 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="] > b[title] + attribute: title + details: + selector: a[title][href*="details.php?id="] + attribute: href + download: + selector: a[href*="download.php?id="] + attribute: href + imdbid: + selector: a[href*="imdb.com/title/tt"] + attribute: href + doubanid: + selector: a[href*="movie.douban.com/subject/"] + attribute: href + date_elapsed: + # time type: time elapsed (default) + selector: td.rowfollow:nth-child(4) > span[title] + 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) + seeders: + selector: td.rowfollow:nth-child(6) + leechers: + selector: td.rowfollow:nth-child(7) + grabs: + selector: td.rowfollow:nth-child(8) + 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 + "*": 1 + uploadvolumefactor: + case: + img.pro_50pctdown2up: 2 + img.pro_free2up: 2 + img.pro_2up: 2 + "*": 1 + description: + selector: td:nth-child(2) + remove: a, img +# NexusPHP Standard v1.5 Beta 4 diff --git a/definitions/v10/mactorrentsdownload.yml b/definitions/v10/mactorrentsdownload.yml index b021cf214..d3c13cc38 100644 --- a/definitions/v10/mactorrentsdownload.yml +++ b/definitions/v10/mactorrentsdownload.yml @@ -23,9 +23,19 @@ settings: type: info_flaresolverr download: - selectors: - - selector: a[href$=".torrent"] + before: + pathselector: + selector: a[href^="/download?"] attribute: href + filters: + - name: replace + args: ["/download?", "/download/?"] + selectors: + - selector: script:contains("downloadLink") + usebeforeresponse: true + filters: + - name: regexp + args: "downloadLink = '(.+?)';" search: paths: diff --git a/definitions/v10/rudub.yml b/definitions/v10/rudub.yml index 2f9007084..345a2c47f 100644 --- a/definitions/v10/rudub.yml +++ b/definitions/v10/rudub.yml @@ -9,9 +9,8 @@ type: semi-private encoding: windows-1251 followredirect: true links: - - https://14november.rudub.online/ + - https://15november.rudub.online/ legacylinks: - - https://14october.rudub.online/ - https://15october.rudub.online/ - https://16october.rudub.online/ - https://17october.rudub.online/ @@ -42,6 +41,7 @@ legacylinks: - https://11november.rudub.online/ - https://12november.rudub.online/ - https://13november.rudub.online/ + - https://14november.rudub.online/ caps: categorymappings: diff --git a/definitions/v10/torrentqq.yml b/definitions/v10/torrentqq.yml index 6576f0628..9410d0dfe 100644 --- a/definitions/v10/torrentqq.yml +++ b/definitions/v10/torrentqq.yml @@ -7,10 +7,9 @@ type: public encoding: UTF-8 followredirect: true links: - - https://torrentqq341.com/ - - https://torrentegg33.com/ + - https://torrentqq342.com/ + - https://torrentegg34.com/ legacylinks: - - https://torrentqq326.com/ - https://torrentqq327.com/ - https://torrentqq328.com/ - https://torrentqq329.com/ @@ -30,6 +29,8 @@ legacylinks: - https://torrentegg31.com/ - https://torrentqq340.com/ - https://torrentegg32.com/ + - https://torrentegg33.com/ + - https://torrentqq341.com/ caps: categorymappings: diff --git a/definitions/v10/torrentsir.yml b/definitions/v10/torrentsir.yml index 02e6c1a50..65d1fd3cb 100644 --- a/definitions/v10/torrentsir.yml +++ b/definitions/v10/torrentsir.yml @@ -7,10 +7,8 @@ type: public encoding: UTF-8 followredirect: true links: - - https://torrentsir157.com/ + - https://torrentsir158.com/ legacylinks: - - http://torrentsir148.com/ - - https://torrentsir148.com/ - http://torrentsir149.com/ - https://torrentsir149.com/ - http://torrentsir150.com/ @@ -28,6 +26,8 @@ legacylinks: - http://torrentsir156.com/ - https://torrentsir156.com/ - http://torrentsir157.com/ + - https://torrentsir157.com/ + - http://torrentsir158.com/ caps: categorymappings: diff --git a/definitions/v10/vault-network.yml b/definitions/v10/vault-network.yml index 894c7a7fb..546310b7e 100644 --- a/definitions/v10/vault-network.yml +++ b/definitions/v10/vault-network.yml @@ -31,6 +31,7 @@ caps: - {id: 40, cat: TV, desc: "Christmas TV"} - {id: 29, cat: Console, desc: "Games"} - {id: 42, cat: PC/Games, desc: "Games PC"} + - {id: 43, cat: Console/Wii, desc: "Games Wii"} - {id: 28, cat: Audio, desc: "Karaoke"} - {id: 7, cat: Movies/HD, desc: "Movie 1080p"} - {id: 6, cat: Movies/UHD, desc: "Movie 4K"}