View Single Post
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#824
Originally Posted by vldcnst View Post
ukki:
I have a new problem.
I added to my playlist a http stream, which is basically a php script that generates a Location() header to an actual stream. This works just fine through normal VLC, but knots crashes. The VLC starts to get the stream for a second or so, then knots stops the stream.

I got this error from the web browser, using the n900 doesn't give any clues.
Code:
undefined method `name' for nil:NilClass
(erb):16:in `html'
(erb):35:in `each_with_index'
(erb):15:in `each'
(erb):15:in `each_with_index'
(erb):15:in `html'
./lib/plugin.rb:168:in `html'
(erb):55:in `html'
./lib/plugin.rb:168:in `html'
./plugins/1root.rb:852:in `play'
./lib/plugin.rb:102:in `call'
./lib/plugin.rb:102:in `do_GET'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
knots.rb:44:in `initialize'
knots.rb:394:in `new'
knots.rb:394
In case you're wondering, adding to playlist the stream, without redirect, works fine.

Please test, it's easy to replicate.
If you enable debug, does VLC show the actual stream under inputs and not your php script? If that's the case, then Knots can't map the url to an item in the database and that causes the error. But I could probably change the way it's handled now to prevent such errors. Thanks for the report, but I'd like to see these on bug tracker instead
 

The Following User Says Thank You to ukki For This Useful Post: