Youtube Api: Adding Videos To A Playlist With The New 32 Character Playlist Id
Solution 1:
uri = "http://gdata.youtube.com/feeds/api/users/dolkarr/playlists/AAnCXJ-nfQZwZYqo69euVZVyJ_XofIJs"
you should remove user/userid, become
uri = "http://gdata.youtube.com/feeds/api/playlists/AAnCXJ-nfQZwZYqo69euVZVyJ_XofIJs"
Check it out: https://developers.google.com/youtube/1.0/developers_guide_python#AddVideoToPlaylist
Solution 2:
For the best result, I'd suggest you to use Data API v3
There is a great Python example that accomplished what you are trying to do. 'https://developers.google.com/youtube/v3/docs/playlistItems/insert#examples'
This should get you started really quick.
Solution 3:
I think that the best practice is always use the prefix PL:
from this article:
http://apiblog.youtube.com/2012/08/playlists-now-with-more-pl.html
While we will continue to support using unprefixed playlist IDs as metadata or in API request URLs for the time being, at some point in the future we may require the “PL” prefix to be used whenever a playlist ID is provided. We’ll provide additional guidance if we do decide to stop supporting requests with unprefixed playlist IDs.
but problems have been reported
https://groups.google.com/forum/#!topic/youtube-api-gdata/0c6dorRZ7bg
I believe that if you use the PL prefix and you get an error, then you must report a possible bug
Post a Comment for "Youtube Api: Adding Videos To A Playlist With The New 32 Character Playlist Id"