Hi there! Just trying to bring back this old topic alive as I would really enjoy this myself. Is there a way to do it myself like tweaking the runeui.js or something like that?
It would also be even better if, in the albums view, albums were sorted alphabetically by artist and by years within the same artist.
Perhaps it could be changed there? (from runeui.js)
- Code: Select all
// Album list (static)
content += divOpen + '<div id="home-albums" class="home-block' + toggleMPD + '" data-path="Albums" data-browsemode="album"><i class="fa fa-dot-circle-o"></i><h3>Albums</h3>browse MPD database by album</div>' + divClose;
// Artist list (static)
content += divOpen + '<div id="home-artists" class="home-block' + toggleMPD + '" data-path="Artists" data-browsemode="artist"><i class="fa fa-users"></i><h3>Artists</h3>browse MPD database by artist</div>' + divClose;
Or most likely there?
- Code: Select all
} else if (GUI.browsemode === 'album' || GUI.browsemode === 'albumfilter') {
// browse by album
if (inputArr.file !== undefined) {
content = '<li id="db-' + (i + 1) + '" data-path="';
content += inputArr.file;
content += '"><i class="fa fa-bars db-action" title="Actions" data-toggle="context" data-target="#context-menu-file"></i><i class="fa fa-music db-icon"></i><span class="sn">';
content += inputArr.Title + ' <span>' + timeConvert(inputArr.Time) + '</span></span>';
content += ' <span class="bl">';
content += inputArr.Artist;
content += ' - ';
content += inputArr.Album;
content += '</span></li>';
} else if (inputArr.album !== '') {
content = '<li id="db-' + (i + 1) + '" class="db-folder db-album" data-path="';
content += inputArr.album.replace(/\"/g,'"');
content += '"><i class="fa fa-bars db-action" title="Actions" data-toggle="context" data-target="#context-menu-album"></i><span><i class="fa fa-dot-circle-o"></i>';
content += inputArr.album;
content += '</span></li>';
}
} else if (GUI.browsemode === 'artist') {
// browse by artist
if (inputArr.album !== undefined) {
content = '<li id="db-' + (i + 1) + '" class="db-folder db-album" data-path="';
content += inputArr.album;
content += '"><i class="fa fa-bars db-action" title="Actions" data-toggle="context" data-target="#context-menu-album"></i><span><i class="fa fa-dot-circle-o"></i>';
content += (inputArr.album !== '') ? inputArr.album : 'Unknown album';
content += '</span></li>';
} else if (inputArr.artist !== '') {
content = '<li id="db-' + (i + 1) + '" class="db-folder db-artist" data-path="';
content += inputArr.artist;
content += '"><i class="fa fa-bars db-action" title="Actions" data-toggle="context" data-target="#context-menu"></i><span><i class="fa fa-user"></i>';
content += inputArr.artist;
content += '</span></li>';
}