Skip to content

Commit

Permalink
Fix: 'spotify-premium.0.playlists.YourPlaylistName.playThisList' starts
Browse files Browse the repository at this point in the history
always with second track; issue #25
  • Loading branch information
twonky4 committed May 24, 2018
1 parent 1ab2060 commit d426573
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ Click for widget source.

## Changelog

### 0.2.5 (2018.05.24)
* (twonky) Fix: `spotify-premium.0.playlists.YourPlaylistName.playThisList` starts always with second track

### 0.2.4 (2018.05.17)
* (twonky) remove special character ("'*) from device and playlist state names

Expand Down
10 changes: 9 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"common": {
"name": "spotify-premium",
"version": "0.2.4",
"version": "0.2.5",
"news": {
"0.2.5": {
"en": "Fix: 'spotify-premium.0.playlists.YourPlaylistName.playThisList' starts always with second track",
"de": "Behoben: 'spotify-premium.0.playlists.YourPlaylistName.playThisList' startet immer das 2. Lied",
"ru": "Исправление: «spotify-premium.0.playlists.YourPlaylistName.playThisList» всегда начинается со второго трека",
"pt": "Correção: 'spotify-premium.0.playlists.YourPlaylistName.playThisList' inicia sempre com a segunda faixa",
"fr": "Correction: 'spotify-premium.0.playlists.YourPlaylistName.playThisList' commence toujours avec la deuxième piste",
"nl": "Fix: 'spotify-premium.0.playlists.YourPlaylistName.playThisList' begint altijd met tweede nummer"
},
"0.2.4": {
"en": "remove special character (\"'*) from device and playlist state names",
"de": "Sonderzeichen (\"'*) in Geräte- und Playlistnamen entfernt",
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ function persistPlaylist(parseJson, autoContinue) {
setObject(prefix + '.trackList', {
type: 'state',
common: {
name: 'Tracks of the playlist saved in common part. Change this value to a track position number to start this playlist with this track.',
name: 'Tracks of the playlist saved in common part. Change this value to a track position number to start this playlist with this track. First track is 0',
type: 'number',
role: 'value',
states: playlistObject.stateString,
Expand Down Expand Up @@ -1557,7 +1557,7 @@ function listenOnTrackList(obj) {

function listenOnPlayThisList(obj, pos) {
if (isEmpty(pos)) {
pos = 1;
pos = 0;
}
// Play a specific playlist immediately
return getState(obj.id.slice(0, obj.id.lastIndexOf('.')) + '.owner').then(function(state) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.spotify-premium",
"version": "0.2.4",
"version": "0.2.5",
"description": "ioBroker spotify-premium Adapter",
"author": {
"name": "Alexander Kose",
Expand Down

0 comments on commit d426573

Please sign in to comment.