Compare commits
2 Commits
9f96393eaf
...
1848ebdff4
Author | SHA1 | Date | |
---|---|---|---|
1848ebdff4 | |||
8bbf33259d |
5
musik.py
5
musik.py
|
@ -171,6 +171,11 @@ class RandomSelection(Resource):
|
||||||
artist=track.artist,
|
artist=track.artist,
|
||||||
album=track.album,
|
album=track.album,
|
||||||
track=track.title)
|
track=track.title)
|
||||||
|
found['coverart'] = url_for(
|
||||||
|
'coverart',
|
||||||
|
artist=track.artist,
|
||||||
|
album=track.album,
|
||||||
|
track=track.title)
|
||||||
return found
|
return found
|
||||||
|
|
||||||
api.add_resource(Selection, '/select')
|
api.add_resource(Selection, '/select')
|
||||||
|
|
|
@ -30,6 +30,7 @@ function select_artist(select) {
|
||||||
html_str += '<option value="' + nav_items[i] + '">' + nav_items[i] + '</option>';
|
html_str += '<option value="' + nav_items[i] + '">' + nav_items[i] + '</option>';
|
||||||
}
|
}
|
||||||
document.getElementById('albumList').innerHTML = html_str;
|
document.getElementById('albumList').innerHTML = html_str;
|
||||||
|
document.getElementById('trackList').innerHTML = '';
|
||||||
};
|
};
|
||||||
httpRequest.open('GET', api_uri + '?artist=' + select.value, true);
|
httpRequest.open('GET', api_uri + '?artist=' + select.value, true);
|
||||||
httpRequest.send();
|
httpRequest.send();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user