auryo icon indicating copy to clipboard operation
auryo copied to clipboard

It is not possible to add a track to the playlist

Open webmastak opened this issue 4 years ago • 2 comments

🐛 Bug report

What issue are you facing

It is not possible to add a track to the playlist.

https://i.imgur.com/RRztnF3.jpg

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

webmastak avatar Sep 21 '19 22:09 webmastak

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: https://i.imgur.com/HJAcMZ2.png

webmastak avatar Sep 23 '19 20:09 webmastak

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.

sneljo1 avatar Sep 25 '19 10:09 sneljo1