Bugzilla – Bug 1140
Can�t run my script after upgrade from 5.4.1 to 6.x
Last modified: 2008-09-15 14:37:04 UTC
Just upgraded from version 5.4.1 to 6.1 b3 and now my script stop working. When running them the player says "Now playing nothing". Is the commandline changed or why isn�t the slimserver finding those files anymore? my script (.bat)looks like: slimcommand.pl -server="10.11.107.101" -player="00:04:20:05:58:da" - command="playlist play m:\playlist_library\01-topp_100.m3u" Perlscript (slimcommand.pl): #!/perl use strict; use Getopt::Long; use IO::Socket; # Parameter defaults my $SBServerIP = "127.0.0.1"; my $SBPort = 9090; my $SBPlayer = "00:00:00:00:00:00"; my $SBCommand = ""; GetOptions( "server:s" => \$SBServerIP, "port:i" => \$SBPort, "player:s" => \$SBPlayer, "command:s" => \$SBCommand); if ($SBCommand eq "") { print "ID!!!"; $SBCommand = "display Player%20id: $SBPlayer 8"; } print "\n$SBServerIP:$SBPort $SBPlayer: :$SBCommand:\n"; my $socket = IO::Socket::INET->new(PeerAddr => "$SBServerIP",PeerPort => "$SBPort",Proto => "tcp",Type => SOCK_STREAM); print $socket "$SBPlayer $SBCommand\n"; close( $socket);
Fred, any comment on this?
I posted a comment to the dev list about using shellwords to filter parameters in the CLI, and my last patch (subsequent to 6.0b3) gets rid of it for that particular reason. Unquoted (as CLI params should be), shellwords transforms: m:\playlist_library\01-topp_100.m3u into m:playlist_library01-topp_100.m3u and it fails. Applying my last patch (6.0.2) should fix this.
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006. I am setting them to targets of 6.2.1 to keep them from showing up in my queries.