joejoeknight / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Adding video to playlist returns "Unsupported URI format" error #643

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
YouTubeRequestSettings ys = new YouTubeRequestSettings("YouTubeUploader",
ConfigurationManager.AppSettings["DEVELOPER_KEY"].ToString());
YouTubeRequest ytr = new YouTubeRequest(ys);
Video v = ytr.ParseVideo(e.ResponseStream);
//Adding To Playlist               
PlayListMember pm = new PlayListMember();
Feed<Playlist> userPlaylists = ytr.GetPlaylistsFeed(ytr.Credentials.Username);

foreach (Playlist p in userPlaylists.Entries)
{
     fs.WriteLine(p.Title);
     if (p.Title == "Test 2")
     {
          pm.Id = v.VideoId;
          ytr.AddToPlaylist(p, pm);

          fs.WriteLine("Added To Playlist ");
     }
}

What is the expected output? 
The video should be added to the playlist.

What do you see instead?
"Unsupported URI format" error.

What version of the product are you using? On what operating system?
YouTube API 2.0 .NET Library - Windows operating system

Please provide any additional information below.
See Stackoverflow issue - 
http://stackoverflow.com/questions/13990945/add-a-video-to-a-playlist-using-resu
mable-upload/14072629#comment19562198_14072629

Original issue reported on code.google.com by kyleljoh...@gmail.com on 3 Jan 2013 at 1:38