mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-03 06:25:10 +00:00
fix(remote): send the off form of a service --x/--no-x flag over --remote
This commit is contained in:
@@ -95,6 +95,7 @@ Show the streaming services available on this server, filtered by your allowlist
|
||||
"name": "movie",
|
||||
"kind": "option",
|
||||
"opts": ["-m", "--movie"],
|
||||
"secondary_opts": [],
|
||||
"is_flag": true,
|
||||
"default": false,
|
||||
"help": "Title is a movie.",
|
||||
@@ -124,7 +125,7 @@ Field notes:
|
||||
| `title_regex` | URL/ID pattern the service matches, as a string or list of strings (or `null`). |
|
||||
| `url` | Service URL, taken from the service's CLI short help. |
|
||||
| `help` | The service module's docstring. |
|
||||
| `cli_params` | Array of parameter descriptors. Arguments have `{name, kind: "argument", required}`; options have `{name, kind: "option", opts, is_flag, default, help, type, multiple}` and, for choice options, a `choices` list. |
|
||||
| `cli_params` | Array of parameter descriptors. Arguments have `{name, kind: "argument", required}`; options have `{name, kind: "option", opts, secondary_opts, is_flag, default, help, type, multiple}` and, for choice options, a `choices` list. `secondary_opts` holds the off names of a boolean flag such as `--x/--no-x`, and is empty for other options. |
|
||||
| `needs_auth` | Whether the service overrides `authenticate()`. |
|
||||
| `has_search` | Whether the service supports `POST /api/search`. |
|
||||
| `anonymous_search` | Whether `POST /api/search` operates with no login for this service. The server then ignores `credentials` and `cookies` on a search. |
|
||||
@@ -208,6 +209,7 @@ Get the list of titles behind a title ID, for example episodes or a movie, witho
|
||||
|
||||
You can also pass a service's own CLI options, in a nested `service_params` object or as
|
||||
additional keys. When the body has `service_params`, the server reads service options only from it.
|
||||
To turn off a flag such as `--x/--no-x`, send `false` under its name (`"x": false`), not under its off name.
|
||||
|
||||
#### Logins that need the user
|
||||
|
||||
|
||||
Reference in New Issue
Block a user