feat: the radio stations are in the apps only when the person asks

A new setting, radio_in_apps, off until the person turns it on (Settings, Apps and
devices, or PATCH /me/settings). With it off, the list of playlists of an OpenSubsonic
app is only the playlists of the person, and a station asked for by id is not found.
With it on, the stations come as playlists called Radio · Rock.

- migration 0036: user_settings.radio_in_apps
- usersettings, the settings API and the OpenAPI spec have the new field; the PATCH
  now keeps each setting apart (naming one no longer sets the other)
- Settings has a switch
This commit is contained in:
tgiachi 2026-11-16 12:33:09 +01:00
commit ed32aac228
2 changed files with 310 additions and 25 deletions

View file

@ -0,0 +1,4 @@
-- radio_in_apps: the stations of the radio are in the list of playlists of an app (OpenSubsonic), as playlists with
-- other songs every time. Off until the person asks: there are two dozen of them.
ALTER TABLE user_settings ADD COLUMN radio_in_apps BOOLEAN NOT NULL DEFAULT FALSE;

View file

@ -0,0 +1,4 @@
-- radio_in_apps: the stations of the radio are in the list of playlists of an app (OpenSubsonic), as playlists with
-- other songs every time. Off until the person asks: there are two dozen of them.
ALTER TABLE user_settings ADD COLUMN radio_in_apps INTEGER NOT NULL DEFAULT 0 CHECK (radio_in_apps IN (0, 1));