kylejginavan / youtube_it

An object-oriented Ruby wrapper for the YouTube GData API
http://groups.google.com/group/ruby-youtube-library
595 stars 223 forks source link

video_id is missing #168

Closed Elgeor closed 11 years ago

Elgeor commented 11 years ago

Hi,

i have a problem. I try to implement example of this app to my project, but after video is uploaded page shows error Couldn't find Video without an ID

After investigation i found that in the last url request video_id is missing.

first _http://uploads.gdata.youtube.com/action/FormDataUpload/AIwbFAOJNJlLxqfQEmP5kqEOAJIzWCDZ3-QpZaAxzW4CxGmU56duXQszcG5W1u2pJOSA0CnR8J6bsyjkAafzoukIbFYhMQTnyg?nexturl=http://localhost:3000/videos/new/save_video?locale=en&video_id=31_

second _http://localhost:3000/videos/new/save_video?locale=en&status=200&id=PNmfHinnqW0_

there is no video_id.

can you help me? thanks

Elgeor commented 11 years ago

realy nobody can help ?

chebyte commented 11 years ago

the problem is from you code, it is not a bug on the gem, when you upload some video it returns

status=200&id=PNmfHinnqW0

but you can add params that you need that it returns please read the doc or see the code example

@upload_info = YouTubeIt::Client.new.upload_token(params, url_to_redirect)

cheers!