Compare commits

...

2 Commits

Author SHA1 Message Date
1848ebdff4 fixed coverart on random selection 2019-02-07 15:02:54 -05:00
8bbf33259d selecting an artist wipes tracklist pane 2019-02-07 09:33:35 -05:00
2 changed files with 6 additions and 0 deletions

View File

@ -171,6 +171,11 @@ class RandomSelection(Resource):
artist=track.artist,
album=track.album,
track=track.title)
found['coverart'] = url_for(
'coverart',
artist=track.artist,
album=track.album,
track=track.title)
return found
api.add_resource(Selection, '/select')

View File

@ -30,6 +30,7 @@ function select_artist(select) {
html_str += '<option value="' + nav_items[i] + '">' + nav_items[i] + '</option>';
}
document.getElementById('albumList').innerHTML = html_str;
document.getElementById('trackList').innerHTML = '';
};
httpRequest.open('GET', api_uri + '?artist=' + select.value, true);
httpRequest.send();