Ticket #60 (new defect)
NoMethodError for YouTube library in lesson 5A
| Reported by: | eggnogg | Owned by: | why |
|---|---|---|---|
| Keywords: | youtube nomethoderror | Cc: |
Description (last modified by eggnogg) (diff)
When running the following program:
# Why's YouTube? program.
Hacker('why').load_program('youtube.rb')
uri = ask("Enter the link to a YouTube? video:")
path = ask("Your name for this video:")
YouTube?.download(uri, path + ".flv")
with the following input:
YouTube? url: http://youtube.com/watch?v=LNVYWJOEy9A (provided in the tutorial)
Filename: Adventure Time (provided in the tutorial)
I get the following error:
[NoMethodError?] undefined method `[]' for nil:NilClass
C:\Program Files\Hackety Hack\ruby\lib/camping.rb:1593:
in `eval'C:\Program Files\Hackety Hack\ruby\lib/net/http.rb:543: in `start'C:\Program Files\Hackety Hack\ruby\lib/net/http.rb:440: in start'(eval):6:in keep_vid'(eval):13:in `download'(eval):5
I restarted HH and could not reproduce the error.
