From 03abb5c681edf9966d5bb7fbcd6e256b397ab19b Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 11 Mar 2024 09:09:18 +0100 Subject: [PATCH] spotify: document how to use with non Facebook accounts See discussion on #203. Part-of: --- audio/spotify/README.md | 7 ++++--- audio/spotify/src/common.rs | 4 ++-- docs/plugins/gst_plugins_cache.json | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/audio/spotify/README.md b/audio/spotify/README.md index d6f84c88..98237747 100644 --- a/audio/spotify/README.md +++ b/audio/spotify/README.md @@ -8,10 +8,11 @@ to respect their legal/licensing restrictions. ## Spotify Credentials -This plugin requires a [Spotify Premium](https://www.spotify.com/premium/) account configured -with a [device password](https://www.spotify.com/us/account/set-device-password/). +This plugin requires a [Spotify Premium](https://www.spotify.com/premium/) account. +If your account is linked with Facebook, you'll need to setup +a [device username and password](https://www.spotify.com/us/account/set-device-password/). -You can then set the device username and password using the `username` and `password` properties. +Those username and password are then set using the `username` and `password` properties. You may also want to cache credentials and downloaded files, see the `cache-` properties on the element. diff --git a/audio/spotify/src/common.rs b/audio/spotify/src/common.rs index 6e94a0aa..5cd6b5f6 100644 --- a/audio/spotify/src/common.rs +++ b/audio/spotify/src/common.rs @@ -30,13 +30,13 @@ impl Settings { pub fn properties() -> Vec { vec![glib::ParamSpecString::builder("username") .nick("Username") - .blurb("Spotify device username from https://www.spotify.com/us/account/set-device-password/") + .blurb("Spotify username, Facebook accounts need a device username from https://www.spotify.com/us/account/set-device-password/") .default_value(Some("")) .mutable_ready() .build(), glib::ParamSpecString::builder("password") .nick("Password") - .blurb("Spotify device password from https://www.spotify.com/us/account/set-device-password/") + .blurb("Spotify password, Facebook accounts need a device password from https://www.spotify.com/us/account/set-device-password/") .default_value(Some("")) .mutable_ready() .build(), diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json index c4dacb05..13c92826 100644 --- a/docs/plugins/gst_plugins_cache.json +++ b/docs/plugins/gst_plugins_cache.json @@ -8494,7 +8494,7 @@ "writable": true }, "password": { - "blurb": "Spotify device password from https://www.spotify.com/us/account/set-device-password/", + "blurb": "Spotify password, Facebook accounts need a device password from https://www.spotify.com/us/account/set-device-password/", "conditionally-available": false, "construct": false, "construct-only": false, @@ -8518,7 +8518,7 @@ "writable": true }, "username": { - "blurb": "Spotify device username from https://www.spotify.com/us/account/set-device-password/", + "blurb": "Spotify username, Facebook accounts need a device username from https://www.spotify.com/us/account/set-device-password/", "conditionally-available": false, "construct": false, "construct-only": false,