FabiUnne/youtube-upload

Adding video to the existing playlist

Closed this issue · 4 comments

Describe the steps that will reproduce the problem?

1. Run a script with --add-to-playlist option


Versions:

youtube-upload: 0.7
python: 2.7
python-gdata: 2.0.14

Please provide any additional information you deem to be useful:

Sorry, me again.

# ./youtube_upload.py --email="User" --password="Pass" --title="Test" 
--category=News 
--add-to-playlist="http://www.youtube.com/playlist?list=PLE096FE294ADAAC7C" 
01.02.11.flvLogin to Youtube API: email='User', password='****************'
Adding video (01.02.11.flv) to playlist: 
http://www.youtube.com/playlist?list=PLE096FE294ADAAC7C
Traceback (most recent call last):
  File "./youtube_upload.py", line 419, in <module>
    sys.exit(catch_exceptions(EXIT_CODES, main_upload, sys.argv[1:]))
  File "./youtube_upload.py", line 100, in catch_exceptions
    fun(*args, **kwargs)
  File "./youtube_upload.py", line 376, in main_upload
    video_id = re.search("v=(.*)$", url).group(1)
AttributeError: 'NoneType' object has no attribute 'group'


Is the playlist URI wrong? It is Public. 

Thank you.

P.S.
Playlist "list" parameter has been randomly changed for this example. Please 
let me know if I need to provide real URL for further investigation?

Original issue reported on code.google.com by webmaste...@gtempaccount.com on 14 Sep 2011 at 1:17

This needs some documentation on the README, it's not self-evident. Some hints:

video to upload: it's an already uploaded URL, not a local file.
playlist: it needs to be the feeds api (note: id without PL)

http://gdata.youtube.com/feeds/api/playlists/E096FE294ADAAC7C

are you sure about this playlist ID? it gives error on both URLs

Original comment by tokland on 14 Sep 2011 at 1:45

> are you sure about this playlist ID? it gives error on both URLs
Check my previous "P.S."


>This needs some documentation on the README, it's not self-evident.
Thank you. I will find it out.

Original comment by stryi.co...@gmail.com on 14 Sep 2011 at 1:51

oh, ok, I didn't seek the P.S. No need for now.

Added a section on the README. Also some validation on subversion repo.

Original comment by tokland on 14 Sep 2011 at 1:56

  • Changed state: Done

Original comment by tokland on 13 May 2014 at 2:55