From 13a8aea9bd805ca3c67b80eb4b60529234c7eb2e Mon Sep 17 00:00:00 2001
From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
Date: Tue, 12 Jan 2021 10:47:58 +0000
Subject: [PATCH] lemonhd: site update
- switch to credentials login
- update categories
- remove category input (may be reverted later)
- update category and title selectors
- remove imdb field
https://github.com/Jackett/Jackett/issues/10604
---
src/Jackett.Common/Definitions/lemonhd.yml | 46 ++++++++++++----------
1 file changed, 26 insertions(+), 20 deletions(-)
diff --git a/src/Jackett.Common/Definitions/lemonhd.yml b/src/Jackett.Common/Definitions/lemonhd.yml
index 984e971db..2c421450f 100644
--- a/src/Jackett.Common/Definitions/lemonhd.yml
+++ b/src/Jackett.Common/Definitions/lemonhd.yml
@@ -26,13 +26,12 @@ caps:
- {id: 414, cat: Movies/DVD, desc: "Movies DVD"}
- {id: 402, cat: TV, desc: "TV Series(电视剧)"}
- {id: 403, cat: TV, desc: "TV Shows(综艺)"}
- - {id: 404, cat: TV/Documentary, desc: "Documentaries"}
+ - {id: 404, cat: TV/Documentary, desc: "Documentaries(纪录片)"}
+ - {id: 405, cat: TV/Anime, desc: "Animations(动画片)"}
- {id: 406, cat: Audio/Video, desc: "Music Videos(MV)"}
- - {id: 407, cat: TV/Sport, desc: "Sports(体育)"}
- {id: 408, cat: Audio, desc: "HQ Audio(音乐)"}
- - {id: 421, cat: Books, desc: "Book(学习资料)"}
- - {id: 422, cat: Console, desc: "Game(游戏)"}
- - {id: 409, cat: Other, desc: "Misc(其他)"}
+ - {id: 500, cat: Audio, desc: "Music(无损)"}
+ - {id: 409, cat: Other, desc: "Video Portray(写真视频)"}
modes:
search: [q]
@@ -42,13 +41,12 @@ caps:
book-search: [q]
settings:
- - name: cookie
+ - name: username
type: text
- label: Cookie
- - name: info
- type: info
- label: How to get the Cookie
- default: "
- Login to this tracker with your browser
- Open the DevTools panel by pressing F12
- Select the Network tab
- Click on the Doc button (Chrome Browser) or HTML button (FireFox)
- Refresh the page by pressing F5
- Click on the first row entry
- Select the Headers tab on the Right panel
- Find 'cookie:' in the Request Headers section
- Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
"
+ label: Username
+ - name: password
+ type: password
+ label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
@@ -75,9 +73,18 @@ settings:
default: For best results, change the Torrents per page: setting to 100 on your account profile.
login:
- method: cookie
+ path: login.php
+ method: form
+ form: form[action="takelogin.php"]
inputs:
- cookie: "{{ .Config.cookie }}"
+ username: "{{ .Config.username }}"
+ password: "{{ .Config.password }}"
+ captcha:
+ type: image
+ selector: img[src^="image.php?"]
+ input: imagestring
+ error:
+ - selector: table:has(a[href="login.php"])
test:
path: index.php
@@ -85,7 +92,6 @@ search:
paths:
- path: torrents.php
inputs:
- $raw: "{{ range .Categories }}cat{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 incldead, 1 active, 2 dead
incldead: 0
@@ -103,19 +109,19 @@ search:
fields:
category:
- selector: a[href^="?cat="]
+ selector: a[href*="?cat_"]
attribute: href
filters:
- - name: querystring
- args: cat
+ - name: regexp
+ args: "cat_(\\d{3})"
title:
- selector: a[href^="details.php?id="]
+ selector: a[href^="details_"] > b
title:
optional: true
- selector: a[title][href^="details.php?id="]
+ selector: a[title][href^="details_"] > b
attribute: title
details:
- selector: a[href^="details.php?id="]
+ selector: a[href^="details_"]
attribute: href
download:
selector: a[href^="download.php?"]