Posted by rolfmeijer on July 15, 2010 at 10:25pm
2 followers
Jump to:
| Project: | Spotify |
| Version: | 6.x-1.0-alpha1 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Peter Törnstrand |
| Status: | active |
Issue Summary
It would be nice if in the dropdown with searchresults the album title could be included. If I do a search on, f.i. “1999” from Prince I get a lot of results. I would like to have the one from the original album, in this case also called “1999” but I can’t see how to pick that one.
Would that be possible?
Comments
#1
Although not being a programmer, I did a little research and found that if you change these lines of code in spotify.module (lines 51-55)
switch($type) {case 'album':
case 'track':
$matches[$row->name ." [{$row['href']}]"] = '<div class="reference-autocomplete">'. check_plain($row->name) .' - '. check_plain($row->artist->name) .'</div>';
break;
into:
switch($type) {case 'album':
$matches[$row->name ." [{$row['href']}]"] = '<div class="reference-autocomplete">'. check_plain($row->name) .' - '. check_plain($row->artist->name) .'</div>';
break;
case 'track':
$matches[$row->name ." [{$row['href']}]"] = '<div class="reference-autocomplete">'. check_plain($row->name) .' - '. check_plain($row->artist->name) .' - '. check_plain($row->album->name) .'</div>';
break;
you get the album title too!
I do admit though, that the dropdown list is getting a little complex. So it would be nice if this could be an option, but that is out of my league at the moment. For the moment I’m pleased with this as it is. :-)
BTW, this is just relevant when searching for tracks.
#2
I agree... the result listing would possible become very large. Perhaps making this a settings is a good idea. Will think about it.