mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
37_Spotify: specify default device by its name
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14446 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
af49ac9313
commit
6aaec593c4
1
CHANGED
1
CHANGED
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- feature: 37_Spotify: specify default device by its name
|
||||
- feature: 98_alarmclock: New feature stop Alarm
|
||||
- bugfix: 98_DOIFtools: fixed empty N_timer
|
||||
- bugfix: 37_Spotify: fixed offset playContextByURI
|
||||
|
@ -670,7 +670,7 @@ sub Spotify_getTargetDeviceID($$$) { # resolve target device settings
|
||||
}
|
||||
|
||||
# no specific device given by user for this command
|
||||
return $attr{$name}{defaultPlaybackDeviceID} if(defined $attr{$name}{defaultPlaybackDeviceID} # use default device or active device
|
||||
return Spotify_getTargetDeviceID($hash, $attr{$name}{defaultPlaybackDeviceID}, $newPlayback) if(defined $attr{$name}{defaultPlaybackDeviceID} # use default device or active device
|
||||
&& (
|
||||
(
|
||||
defined $attr{$name}{alwaysStartOnDefaultDevice}
|
||||
@ -679,6 +679,7 @@ sub Spotify_getTargetDeviceID($$$) { # resolve target device settings
|
||||
)
|
||||
|| !defined $hash->{helper}{device_active}{id}
|
||||
)
|
||||
&& $attr{$name}{defaultPlaybackDeviceID} ne $device_id
|
||||
);
|
||||
|
||||
# no default or active device available
|
||||
@ -1113,7 +1114,7 @@ sub Spotify_isDisabled($) {
|
||||
</li>
|
||||
<li>
|
||||
<i>defaultPlaybackDeviceID</i><br>
|
||||
the prefered device by its id<br>
|
||||
the prefered device by its id or device name<br>
|
||||
</li>
|
||||
<li>
|
||||
<i>disable</i><br>
|
||||
@ -1282,7 +1283,7 @@ sub Spotify_isDisabled($) {
|
||||
</li>
|
||||
<li>
|
||||
<i>defaultPlaybackDeviceID</i><br>
|
||||
das Standard-Gerät nach ID<br>
|
||||
das Standard-Gerät durch Angabe der Geräte-ID oder des Geräte-Namens<br>
|
||||
</li>
|
||||
<li>
|
||||
<i>disable</i><br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user