auryo
auryo copied to clipboard
It is not possible to add a track to the playlist
🐛 Bug report
What issue are you facing
It is not possible to add a track to the playlist.
Steps to reproduce
Adding a track to the playlist.
Environment
Which Operating System?
OS: Manjaro 18.1.0 GNOME 3.32.2
Which version of Auryo?
Version of app: 2.4.0
I rushed to the bug report, you turned off the function of adding to the playlist.
How then in the soundnode-app works:
/**
* Responsible to add track to a particular playlist
* @params playlistId [playlist id that contains the track]
* @method saveToPlaylist
*/
$scope.saveToPlaylist = function(playlistId) {
var endpoint = 'users/'+ $rootScope.userId + '/playlists/'+ playlistId
, params = '';
SCapiService.get(endpoint, params)
.then(function(response) {
var track = {
"id": Number.parseInt($scope.playlistSongId)
}
, uri = response.uri + '.json?&oauth_token=' + $window.scAccessToken
, tracks = response.tracks;
tracks.push(track);
$http.put(uri, { "playlist": {
"tracks": tracks
}
}).then(function(response, status) {
notificationFactory.success("Song added to playlist!");
}, function(error) {
notificationFactory.error("Something went wrong!");
$log.log(response);
return $q.reject(response.data);
}).finally(function() {
ngDialog.closeAll();
})
}, function(error) {
});
};
Or you can do how playlists are implemented in Cloud-Player:
Does it not delete tracks which aren't available via the SoundCloud API (for third party apps)?
You should find a song in your likes which you can't find in Auryo or similar SoundCloud app. Add it to a playlist using the soundcloud.com . Try updating the playlist in the third party app and see on soundcloud.com if the track is still there.