Move to Playlist fails
Closed this issue · 6 comments
GoogleCodeExporter commented
Describe the steps that will reproduce the problem?
1. Use this command and options. I've replaced the user info, as follows:
# youtube-upload --email=<username>@gmail.com --password=<password>
--add-to-playlist=http://gdata.youtube.com/feeds/api/playlists/<playlistID>
http://www.youtube.com/watch?v=<YTVideoID>
Login to Youtube API: email='<username>@gmail.com', password='********'
Adding video (http://www.youtube.com/watch?v=<YTVideoID>) to playlist:
http://gdata.youtube.com/feeds/api/playlists/<playlistID>
Traceback (most recent call last):
File "/usr/bin/youtube-upload", line 445, in <module>
sys.exit(catch_exceptions(EXIT_CODES, main_upload, sys.argv[1:]))
File "/usr/bin/youtube-upload", line 104, in catch_exceptions
fun(*args, **kwargs)
File "/usr/bin/youtube-upload", line 399, in main_upload
youtube.add_video_to_playlist(video_id, options.add_to_playlist)
File "/usr/bin/youtube-upload", line 205, in add_video_to_playlist
playlist_uri, video_id, title, description)
File "/usr/lib/python2.6/site-packages/gdata/youtube/service.py", line 1011, in AddPlaylistVideoEntryToPlaylist
converter=gdata.youtube.YouTubePlaylistVideoEntryFromString)
File "/usr/lib/python2.6/site-packages/gdata/service.py", line 1236, in Post
media_source=media_source, converter=converter)
File "/usr/lib/python2.6/site-packages/gdata/service.py", line 1357, in PostOrPut
'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 400, 'body': 'Invalid playlist id',
'reason': 'Bad Request'}
2.
3.
Versions:
youtube-upload: 0.7
python: 2.6
python-gdata: 2.0.11
Please provide any additional information you deem to be useful:
Receive the above error when activated.
Please advise.
Original issue reported on code.google.com by marinins...@gmail.com
on 3 Jan 2012 at 8:25
GoogleCodeExporter commented
it works for me. Please paste the command you run with real
playlist_id/youtube_video_url (use any playlist/video you see fit)
Original comment by tokland
on 3 Jan 2012 at 8:57
GoogleCodeExporter commented
youtube-upload --email=marininstitute@gmail.com --password=xxxxxx
--add-to-playlist=http://gdata.youtube.com/feeds/api/playlists/PLD52756675193AF1
8 http://www.youtube.com/watch?v=wXtADLeOcAk
Original comment by marinins...@gmail.com
on 3 Jan 2012 at 9:15
GoogleCodeExporter commented
I think you have to remove the "PL" in the playlist (check the README)
Original comment by tokland
on 3 Jan 2012 at 9:50
GoogleCodeExporter commented
DUH! Thanks. My bad. Sorry to have bothered you. I'll offer a little edit for
the README for numbskulls like me that try to gloss over things too fast.
Original comment by marinins...@gmail.com
on 4 Jan 2012 at 12:20
GoogleCodeExporter commented
Original comment by tokland
on 5 Feb 2012 at 10:42
- Changed state: Invalid
GoogleCodeExporter commented
Original comment by tokland
on 13 May 2014 at 2:55