> Hi, just for interest I have found the issue. The player web page calls > http to pull in the filters, genres etc from MusicIP so it was this that > was causing the issue, if I removed these calls then the page loaded.
Heh... just run into that issue with one of my own plugins too... The problem is using Slim::Player::Protocol::HTTP to do async http calls. As that module's name says, it wasn't intended for that usage, though it did the job for a while. In 7.5 it has been rewritten to do its job more efficiently. But this breaks using it to do non-player related calls. Instead of abusing this method you should either use async calls (which might require quite a bit of code rewrite), or go with LWP::UserAgent. Basically I changed my code from: my $http = Slim::Player::Protocols::HTTP->new($req); my $content = $http->content(); $http->close; to the following: my $ua = LWP::UserAgent->new(); my $http = $ua->get($url); my $content = $http->content; (I did of course add some validation in between, but you get the point) -- Michael _______________________________________________ beta mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/beta
