[Slim-Checkins] r11393 - in /trunk/server: Changelog6.html HTML/EN/html/docs/cli-api.html Slim/Control/Queries.pm
fred at svn.slimdevices.com
fred at svn.slimdevices.com
Sat Feb 10 17:32:34 PST 2007
Author: fred
Date: Sat Feb 10 17:32:33 2007
New Revision: 11393
URL: http://svn.slimdevices.com?rev=11393&view=rev
Log:
Bug: N/A
Description: Added a way to return the artist in the albums query. This uses the suboptimal web method (no join, one query
per album), but it is difficult to do better given the plethora of configuration options and doing it this way insures the
CLI returns the same thing than the web interface :)
Modified:
trunk/server/Changelog6.html
trunk/server/HTML/EN/html/docs/cli-api.html
trunk/server/Slim/Control/Queries.pm
Modified: trunk/server/Changelog6.html
URL: http://svn.slimdevices.com/trunk/server/Changelog6.html?rev=11393&r1=11392&r2=11393&view=diff
==============================================================================
--- trunk/server/Changelog6.html (original)
+++ trunk/server/Changelog6.html Sat Feb 10 17:32:33 2007
@@ -19,6 +19,7 @@
<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4728">#4728</a> - Alarm Volumes inc-/decreases in steps of 2 or 3</li>
<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4735">#4735</a> - slimp3 logo missing for tan style in fishbone skin</li>
<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4737">#4737</a> - Basic search: empty search should say something</li>
+ <li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4613">#4613</a> - playlistcontrol change tracks sorting</li>
</ul>
</ul>
Modified: trunk/server/HTML/EN/html/docs/cli-api.html
URL: http://svn.slimdevices.com/trunk/server/HTML/EN/html/docs/cli-api.html?rev=11393&r1=11392&r2=11393&view=diff
==============================================================================
--- trunk/server/HTML/EN/html/docs/cli-api.html (original)
+++ trunk/server/HTML/EN/html/docs/cli-api.html Sat Feb 10 17:32:33 2007
@@ -68,6 +68,9 @@
<li>
Order of tracks passed to "<a href="#playlistcontrol">playlistcontrol</a>"
command is maintained.
+ </li>
+ <li>
+ Added a tag to return the artist from the "<a href="#albums">albums</a>" query.
</li>
</ul>
@@ -3071,6 +3074,17 @@
1 if this album is a compilation.
</td>
</tr>
+ <tr>
+ <td>
+ a
+ </td>
+ <td>
+ artist
+ </td>
+ <td>
+ The album artist (depends on server configuration).
+ </td>
+ </tr>
</table>
<p>
Examples:
Modified: trunk/server/Slim/Control/Queries.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Control/Queries.pm?rev=11393&r1=11392&r2=11393&view=diff
==============================================================================
--- trunk/server/Slim/Control/Queries.pm (original)
+++ trunk/server/Slim/Control/Queries.pm Sat Feb 10 17:32:33 2007
@@ -234,6 +234,10 @@
$tags =~ /i/ && $request->addResultLoopIfValueDefined($loopname, $cnt, 'disc', $eachitem->disc);
$tags =~ /q/ && $request->addResultLoopIfValueDefined($loopname, $cnt, 'disccount', $eachitem->discc);
$tags =~ /w/ && $request->addResultLoopIfValueDefined($loopname, $cnt, 'compilation', $eachitem->compilation);
+ if ($tags =~ /a/) {
+ my @artists = $eachitem->artists();
+ $request->addResultLoopIfValueDefined($loopname, $cnt, 'artist', $artists[0]->name());
+ }
$cnt++;
}
}
More information about the checkins
mailing list