MartijnVogelaar / krunner-spotify

Allows you to easily control Spotify via KRunner.
GNU General Public License v3.0
42 stars 6 forks source link

Keep device active #15

Open MartijnVogelaar opened 3 years ago

MartijnVogelaar commented 3 years ago

After a certain amount of time a paused device gets inactive and can thus no longer be controller. A solution should be found to fix this. This can either be by re-activating the device via the spotify-api(if possible?!?). Or by keeping it active by for example increasing and decreasing the volume every minute with 1 percent.

RobLuzmo commented 1 year ago

The active device is selected by default when no id is provided but by providing an id one can activate a device. See https://github.com/spotipy-dev/spotipy/issues/685#issuecomment-850907306 So if the list of available devices is just 1 device, that id can be used, otherwise the last known id can be stored and used in case there's no active device.