mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
fix(remote): stop with one line when a remote server rejects the API key instead of building the stub command
This commit is contained in:
@@ -154,6 +154,11 @@ no longer moves the API key to another name. Names you give keep your spelling a
|
||||
are not repeated in the fallbacks, so unshackle tries
|
||||
`auth_headers: ["Authorization", "x-secret-key"]` as `Authorization`, `x-secret-key`, `X-Api-Key`.
|
||||
|
||||
When the server answers `401` to each name, or `403` with a JSON body and no `error_code`, the
|
||||
run stops with one line: `Remote server <url> rejected the API key (HTTP 401)`. When the server
|
||||
does not answer, `dl --remote` keeps a service command with no service options, so `--help` still
|
||||
works.
|
||||
|
||||
`timeout` is the time in seconds that the client waits for data from the server. The
|
||||
default is `120`. The server sends a heartbeat every 30 seconds while it gets titles, tracks
|
||||
or licences, so a slow service does not cause a timeout. Increase `timeout` only when the
|
||||
|
||||
Reference in New Issue
Block a user