Thank you for your donation!


Moode great on Allo USBridge Sig
#1
First post – I bought an Allo USBridge Signature this week and have put Moode on it. Yes, Moode is great so thank you very much.
 
Very easy to set up. All the basic stuff was a piece of cake and I have a FLIRC USB remote which was also easy to get working using triggerhappy.
 
I have a Chord Qutest DAC and the advice to use the performance mode in the system settings has removed the clicks in playback in Moode 6.4.2. There may be an occasional click but I am not sure if I am imagining it! Anyway nothing to worry about. The USBridge replaced a dedicated mini-itx machine running a Squeezebox-based OS, and the sound using the USBridge and Moode is an improvement, which is what I was aiming for. BTW the rest of the gear is: the Qutest goes into an analogue input of a Naim 272, then a Naim 250 amp and Dynaudio Special 40 speakers.
 
One Q I have is that is it possible to sort the albums differently? I see there is a “recent albums” filter but I would prefer them to be sorted by the date they were added in descending order so I always have the most recent at the top. I am OK to modify source code if I get a bit of a pointer to where the sorting is done.
 
Anyway thanks again
Reply
#2
Good idea. The new moOde 6.5.0 is headed for release pretty soon so just hang tight for a bit and I'll try to incorporate the descending sort for recents :-)

If you want to experiment then have a look at the source file /var/www/js/scripts-library.js

-Tim
Reply
#3
(04-19-2020, 01:03 PM)Tim Curtis Wrote: Good idea. The new moOde 6.5.0 is headed for release pretty soon so just hang tight for a bit and I'll try to incorporate the descending sort for recents :-)

If you want to experiment then have a look at the source file /var/www/js/scripts-library.js

-Tim

WOW! Thanks very much.
Reply
#4
In file /var/www/js/scripts-library.js just add the // Sort descending code block.

Code:
function filterAlbums() {
    filteredAlbums = allAlbums;
    filteredAlbumCovers = allAlbumCovers;

    // Filter by genre
    if (LIB.filters.genres.length) {
        filteredAlbums = filteredAlbums.filter(filterByAllGenres);
        filteredAlbumCovers = filteredAlbumCovers.filter(filterByAllGenres);
    }
    // Filter by artist
    if (LIB.filters.artists.length) {
        filteredAlbums = filteredAlbums.filter(filterByArtist);
        filteredAlbumCovers = filteredAlbumCovers.filter(filterByArtist);
    }
   // Filter by file last-updated timestamp
   if (LIB.recentlyAddedClicked) {
       LIB.currentDate = new Date();
       filteredAlbums = filteredAlbums.filter(filterAlbumsByDate);
       filteredAlbumCovers = filteredAlbumCovers.filter(filterAlbumsByDate);
       // Sort descending
       var collator = new Intl.Collator(undefined, {numeric: true, sensitivity: 'base'});
       filteredAlbums.sort(function(a, b) {
           return collator.compare(b['last_modified'].getTime(), a['last_modified'].getTime());
       });
       filteredAlbumCovers.sort(function(a, b) {
           return collator.compare(b['last_modified'].getTime(), a['last_modified'].getTime());
       });
   }
    // Filter by year(s)
    if (LIB.filters.year.length) {
        filteredAlbums = filteredAlbums.filter(filterByYear);
        filteredAlbumCovers = filteredAlbumCovers.filter(filterByYear);
    }
}
Reply
#5
(04-19-2020, 06:23 PM)Tim Curtis Wrote: In file /var/www/js/scripts-library.js just add the // Sort descending code block.

Code:
function filterAlbums() {
    filteredAlbums = allAlbums;
    filteredAlbumCovers = allAlbumCovers;

    // Filter by genre
    if (LIB.filters.genres.length) {
        filteredAlbums = filteredAlbums.filter(filterByAllGenres);
        filteredAlbumCovers = filteredAlbumCovers.filter(filterByAllGenres);
    }
    // Filter by artist
    if (LIB.filters.artists.length) {
        filteredAlbums = filteredAlbums.filter(filterByArtist);
        filteredAlbumCovers = filteredAlbumCovers.filter(filterByArtist);
    }
   // Filter by file last-updated timestamp
   if (LIB.recentlyAddedClicked) {
       LIB.currentDate = new Date();
       filteredAlbums = filteredAlbums.filter(filterAlbumsByDate);
       filteredAlbumCovers = filteredAlbumCovers.filter(filterAlbumsByDate);
       // Sort descending
       var collator = new Intl.Collator(undefined, {numeric: true, sensitivity: 'base'});
       filteredAlbums.sort(function(a, b) {
           return collator.compare(b['last_modified'].getTime(), a['last_modified'].getTime());
       });
       filteredAlbumCovers.sort(function(a, b) {
           return collator.compare(b['last_modified'].getTime(), a['last_modified'].getTime());
       });
   }
    // Filter by year(s)
    if (LIB.filters.year.length) {
        filteredAlbums = filteredAlbums.filter(filterByYear);
        filteredAlbumCovers = filteredAlbumCovers.filter(filterByYear);
    }
}

Magic! Thanks - much appreciated.
Reply


Forum Jump: