mirror of
https://github.com/Jackett/Jackett
synced 2025-03-04 10:48:26 +00:00
hdonly: switch to API (#15855)
This commit is contained in:
parent
a2b96d7c17
commit
f67c3588b3
2 changed files with 18 additions and 23 deletions
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
id: hdonly
|
id: hdonly-api
|
||||||
name: HD-Only
|
replaces:
|
||||||
|
- hdonly
|
||||||
|
name: HD-Only (API)
|
||||||
description: "HD-Only (HD-O) is a FRENCH Private Torrent Tracker for HD MOVIES / TV"
|
description: "HD-Only (HD-O) is a FRENCH Private Torrent Tracker for HD MOVIES / TV"
|
||||||
language: fr-FR
|
language: fr-FR
|
||||||
type: private
|
type: private
|
||||||
|
@ -33,19 +35,13 @@ caps:
|
||||||
allowrawsearch: true
|
allowrawsearch: true
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: username
|
- name: apikey
|
||||||
type: text
|
type: text
|
||||||
label: Username
|
label: API Key
|
||||||
- name: password
|
- name: info_key
|
||||||
type: password
|
|
||||||
label: Password
|
|
||||||
- name: 2fa_code
|
|
||||||
type: text
|
|
||||||
label: 2FA code
|
|
||||||
- name: info_2fa
|
|
||||||
type: info
|
type: info
|
||||||
label: "About 2FA code"
|
label: About your API Key
|
||||||
default: "Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the HD-Only Web Site. Otherwise just leave it empty."
|
default: "Find or Generate a new API Key by accessing your <a href=\"https://hd-only.org/\" target=\"_blank\">HD-Only</a> account <i>Access Settings</i> tab and copy the API Key."
|
||||||
- name: freeleech
|
- name: freeleech
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Search freeleech only
|
label: Search freeleech only
|
||||||
|
@ -93,18 +89,15 @@ settings:
|
||||||
asc: asc
|
asc: asc
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: login.php
|
path: ajax.php
|
||||||
method: post
|
method: get
|
||||||
inputs:
|
inputs:
|
||||||
username: "{{ .Config.username }}"
|
action: browse
|
||||||
password: "{{ .Config.password }}"
|
apikey: "{{ .Config.apikey }}"
|
||||||
twofa: "{{ .Config.2fa_code }}"
|
|
||||||
keeplogged: 1
|
|
||||||
error:
|
error:
|
||||||
- selector: form#loginform > span.warning
|
- selector: a[href*="login.php"]
|
||||||
test:
|
message:
|
||||||
path: torrents.php
|
text: "The API key was not accepted by {{ .Config.sitelink }}."
|
||||||
selector: a[href^="logout.php?auth="]
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
# https://hd-only.org/ajax.php?filelist=blood+2009&action=browse&group_results=0&order_by=time&order_way=desc&freetorrent=1
|
# https://hd-only.org/ajax.php?filelist=blood+2009&action=browse&group_results=0&order_by=time&order_way=desc&freetorrent=1
|
||||||
|
@ -126,6 +119,7 @@ search:
|
||||||
# 1 freeleech, 0 normal
|
# 1 freeleech, 0 normal
|
||||||
freetorrent: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
|
freetorrent: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
|
||||||
# site does not support imdbid search or display imdb links in results
|
# site does not support imdbid search or display imdb links in results
|
||||||
|
apikey: "{{ .Config.apikey }}"
|
||||||
|
|
||||||
keywordsfilters:
|
keywordsfilters:
|
||||||
# strip season
|
# strip season
|
|
@ -457,6 +457,7 @@ namespace Jackett.Updater
|
||||||
"Definitions/hdme.yml",
|
"Definitions/hdme.yml",
|
||||||
"Definitions/hdmonkey.yml",
|
"Definitions/hdmonkey.yml",
|
||||||
"Definitions/hdolimpo.yml", // migrated to UNIT3D API
|
"Definitions/hdolimpo.yml", // migrated to UNIT3D API
|
||||||
|
"Definitions/hdonly.yml", // renamed to hdonly-api.yml #15855
|
||||||
"Definitions/hdplus.yml",
|
"Definitions/hdplus.yml",
|
||||||
"Definitions/hdreactor.yml", // renamed to hdhouse
|
"Definitions/hdreactor.yml", // renamed to hdhouse
|
||||||
"Definitions/hdspain.yml",
|
"Definitions/hdspain.yml",
|
||||||
|
|
Loading…
Add table
Reference in a new issue