Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
549 changes: 534 additions & 15 deletions cmd/setup.go

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions cmd/setup_save_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ func TestSetupRewriteKeepsUserLines(t *testing.T) {
initial: "[spotify]\nenabled = false\nclient_id = \"old\"\nbitrate = 160\n",
want: "[spotify]\nbitrate = 320\n",
},
{
name: "plex manual setup keeps client_id and drops server_id",
section: "plex",
values: map[string]string{keyPlexAuth: "manual", "url": "http://plex.local:32400", "token": "manual-token", "client_id": "client-1"},
initial: "[plex]\nurl = \"https://old.plex.direct:32400\"\ntoken = \"account-token\"\nclient_id = \"client-1\"\nserver_id = \"server-1\"\n",
want: "[plex]\nurl = \"http://plex.local:32400\"\ntoken = \"manual-token\"\nclient_id = \"client-1\"\n",
},
{
name: "no config file",
section: "qobuz",
Expand Down
Loading
Loading