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

rolfmeijer’s picture

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.

peter törnstrand’s picture

Assigned: Unassigned » peter törnstrand

I agree... the result listing would possible become very large. Perhaps making this a settings is a good idea. Will think about it.

peter törnstrand’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)