hdhome: use cookie login. resolves #6460

also updated the  categories.
This commit is contained in:
Garfield69 2019-12-03 20:02:19 +13:00
parent 310cba2655
commit 8081baad7b
1 changed files with 19 additions and 15 deletions

View File

@ -18,18 +18,21 @@
- {id: 414, cat: Movies/HD, desc: "Movies 1080p"}
- {id: 415, cat: Movies/HD, desc: "Movies REMUX"}
- {id: 450, cat: Movies/BluRay, desc: "Movies Bluray"}
- {id: 416, cat: Movies/HD, desc: "Movies 2160p"}
- {id: 499, cat: Movies/BluRay, desc: "Movies UHD Blu-ray"}
- {id: 416, cat: Movies/UHD, desc: "Movies 2160p"}
- {id: 417, cat: TV/Documentary, desc: "Doc SD"}
- {id: 418, cat: TV/Documentary, desc: "Doc IPad"}
- {id: 419, cat: TV/Documentary, desc: "Doc 720p"}
- {id: 420, cat: TV/Documentary, desc: "Doc 1080p"}
- {id: 421, cat: TV/Documentary, desc: "Doc REMUX"}
- {id: 451, cat: TV/Documentary, desc: "Doc Bluray"}
- {id: 500, cat: TV/Documentary, desc: "Doc UHD Blu-ray"}
- {id: 422, cat: TV/Documentary, desc: "Doc 2160p"}
- {id: 423, cat: TV/HD, desc: "TVMusic 720p"}
- {id: 424, cat: TV/HD, desc: "TVMusic 1080i"}
- {id: 425, cat: TV/SD, desc: "TVShow SD"}
- {id: 426, cat: TV/SD, desc: "TVShow IPad"}
- {id: 471, cat: TV/SD, desc: "TVShow IPad"}
- {id: 427, cat: TV/HD, desc: "TVShow 720p"}
- {id: 428, cat: TV/HD, desc: "TVShow 1080i"}
- {id: 429, cat: TV/HD, desc: "TVShow 1080p"}
@ -43,7 +46,8 @@
- {id: 436, cat: TV/HD, desc: "TVSeries 1080p"}
- {id: 437, cat: TV/HD, desc: "TVSeries REMUX"}
- {id: 453, cat: TV/HD, desc: "TVSereis Bluray"}
- {id: 438, cat: TV/HD, desc: "TVSeries 2160p"}
- {id: 438, cat: TV/UHD, desc: "TVSeries 2160p"}
- {id: 502, cat: TV/UHD, desc: "TVSeries 4K Bluray"}
- {id: 439, cat: Audio/Other, desc: "Musics APE"}
- {id: 440, cat: Audio/Lossless, desc: "Musics FLAC"}
- {id: 441, cat: Audio/Video, desc: "Musics MV"}
@ -57,28 +61,28 @@
- {id: 454, cat: TV/Anime, desc: "Anime Bluray"}
- {id: 409, cat: Other, desc: "Misc"}
- {id: 449, cat: TV/Anime, desc: "Anime 2160p"}
- {id: 501, cat: TV/Anime, desc: "Anime UHD Blu-ray"}
modes:
search: [q]
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
settings:
- name: cookie
type: text
label: Cookie
- name: info
type: info
label: How to get the Cookie
default: "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find 'cookie:' in the <b>Request Headers</b> section<li>Copy & paste the whole cookie string to here.</ol>"
login:
path: login.php
method: form
form: form[action="takelogin.php"]
captcha:
type: image
selector: img[alt="CAPTCHA"]
input: imagestring
method: cookie
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: td.embedded:has(h2:contains("姿势不正确"))
- selector: td.embedded:has(h2:contains("失败"))
cookie: "{{ .Config.cookie }}"
test:
path: torrents.php
path: index.php
search:
paths: