Example #1
0
        async void LoadPlaylist(int slot, string playlistID)
        {
            var pl = await new YoutubeClient().GetPlaylistAsync(playlistID, 1);

            sections[slot] = new Section(pl.Title, SectionType.SinglePlaylist, Song.FromVideoArray(pl.Videos), new PlaylistItem(pl.Title, -1, playlistID)
            {
                HasWritePermission = false, Owner = item.Name
            });
            adapter.NotifyItemChanged(slot);
        }