PotatoNeto
PotatoNeto
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
Just saying it worked, thanks a lot and sorry if I wasn't clear at the beginning.
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
Yea, I just never thought about sending the wrapper link
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
Ok, now I know that. Thanks Pobiega
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
ok nvm it's says it right here
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
What's paginate?
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
I found this (right when I started working with that api) but I can't find what I need here. https://johnnycrazy.github.io/SpotifyAPI-NET/
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
Right, but in my code, in that certain (and only) line I see the Playlists(id) I don't quite understand where I should put the #Tracks.
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
Ok. I saw that, though you see at the top it's says playlists/{playlistId}/tracks?
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
That's not I meant.
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
Yea I got that. And just 1 thing, instead of pointing out my errors, why won't you help me? Clearly I don't know very well what I'm doing, right? So help me. Don't be like that.
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
try{
var playlist = await spotify.Playlists.Get(playlistID);

if((playlist.Tracks == null) || (playlist.Tracks.Items == null) || (playlist.Tracks.Items.Count <= 0)) {
throw new Exception("No songs in playlist.");
}

playlist.Tracks.Limit = 350; // THIS LINE

return playlist.Tracks.Items;
}
catch(Exception e) {
System.Console.WriteLine(e.Message);
System.Console.WriteLine();

return new List<PlaylistTrack<IPlayableItem>>();
}
try{
var playlist = await spotify.Playlists.Get(playlistID);

if((playlist.Tracks == null) || (playlist.Tracks.Items == null) || (playlist.Tracks.Items.Count <= 0)) {
throw new Exception("No songs in playlist.");
}

playlist.Tracks.Limit = 350; // THIS LINE

return playlist.Tracks.Items;
}
catch(Exception e) {
System.Console.WriteLine(e.Message);
System.Console.WriteLine();

return new List<PlaylistTrack<IPlayableItem>>();
}
I added this line and it still returns a list with 100 and that's it. I took this line from their docs.
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
Oof, isn't there a way to do it without multiple requests?
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
Fixed it
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
Let me rephrase my problem
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
I also couldn't find a Discord server that provides such thing, so it makes sense to send it in the C# server. Someone PROBABLY used the SpotifyAPI in here.
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
I couldn't find it
51 replies
CC#
Created by PotatoNeto on 10/5/2023 in #help
✅ Help with SpotifyAPI
What else would want me to give you?
51 replies