[Slim-Checkins] r12787 - /trunk/server/Slim/Buttons/XMLBrowser.pm
andy at svn.slimdevices.com
andy at svn.slimdevices.com
Wed Aug 29 12:25:35 PDT 2007
Author: andy
Date: Wed Aug 29 12:25:35 2007
New Revision: 12787
URL: http://svn.slimdevices.com?rev=12787&view=rev
Log:
CLI XMLBrowser type=text support
Modified:
trunk/server/Slim/Buttons/XMLBrowser.pm
Modified: trunk/server/Slim/Buttons/XMLBrowser.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Buttons/XMLBrowser.pm?rev=12787&r1=12786&r2=12787&view=diff
==============================================================================
--- trunk/server/Slim/Buttons/XMLBrowser.pm (original)
+++ trunk/server/Slim/Buttons/XMLBrowser.pm Wed Aug 29 12:25:35 2007
@@ -1548,10 +1548,14 @@
$request->addResultLoop($loopname, $cnt, 'text', $hash{'name'} || $hash{'title'});
- my $id = $hash{'id'};
- my $params = {
- 'item_id' => "$id", #stringify, make sure it's a string
- };
+ if ( $item->{type} ne 'text' ) {
+ my $id = $hash{id};
+ my $params = {
+ item_id => "$id", #stringify, make sure it's a string
+ };
+
+ $request->addResultLoop( $loopname, $cnt, 'params', $params );
+ }
if ( $item->{type} eq 'search' ) {
$params->{search} = '__INPUT__';
@@ -1566,7 +1570,7 @@
$request->addResultLoop( $loopname, $cnt, 'input', $input );
}
- $request->addResultLoop($loopname, $cnt, 'params', $params);
+
}
else {
$request->setResultLoopHash($loopname, $cnt, \%hash);
More information about the checkins
mailing list