fix(remote): send the off form of a service --x/--no-x flag over --remote

This commit is contained in:
imSp4rky
2026-12-02 17:58:02 -07:00
parent aa09751202
commit 20e06665a1
5 changed files with 93 additions and 4 deletions
+3 -1
View File
@@ -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