02-12-2025, 11:58 PM
(02-12-2025, 10:48 PM)tommyQ Wrote: I'm new to the forum but I have tried very hard to check previous posts for this topic. Apologies if I've missed this one.
How does MoOde figure out which image to associate with an album or indeed an individual track? All my music is on a USB stick. Albums are in seperate folders. Some have a
large.jpg,
a small.jpg and things like
AlbumArt_{B5020207-474E-4720-6CE2-8E2C9820BE00}
But lots of entries in the UI seemto have invalid art files associated.
How can I debug this please? How does the indexing of the file system /media/'MOODE MUSIC' work/progress.
My end game here is simply to see each folder on my USB stick look like a single album. Where the same song exists on a compilations album, I'd just like that album to be seen as it is. I've seen stuff on tags, but a) I can't see how I can set this for my choice and b) I think some of the information MoOde seems to gather must come from the internet? I dont see the likes of artist names anywhere in my files.
I do have some more qiestions, but I'll split them to keep things clear. I hope I'm posting in the right area.
Many thanks.
Be sure to read Menu > Quick help. It has important information on the Library, metadata tags, cover images, etc. Keep in mind that the Library in moOde is based on track metadata tags so be sure that important tags like Artist, Title, Track, Album etc are populated correctly and consistently for best results. moOde does not parse file names to automatically populate these tags.
1. How does MoOde figure out which image to associate with an album or indeed an individual track? All my music is on a USB stick. Albums are in seperate folders. Some have a large.jpg, a small.jpg and things like AlbumArt_{B5020207-474E-4720-6CE2-8E2C9820BE00}
It looks for the image files below and if none are found then it looks for any file of type image in the album directory. It's best to consistently use one of the file names below. Menu > Preferences > Cover Art has options that control how cover art is handled including embedded cover art and artist covers.
/var/www/util/thumb-gen.php and /var/www/coverart.php
Code:
$covers = array(
'Cover.jpg', 'cover.jpg', 'Cover.jpeg', 'cover.jpeg', 'Cover.png', 'cover.png', 'Cover.tif', 'cover.tif', 'Cover.tiff', 'cover.tiff',
'Folder.jpg', 'folder.jpg', 'Folder.jpeg', 'folder.jpeg', 'Folder.png', 'folder.png', 'Folder.tif', 'folder.tif', 'Folder.tiff', 'folder.tiff'
);
2. But lots of entries in the UI seemto have invalid art files associated.
See #1.
3. How can I debug this please? How does the indexing of the file system /media/'MOODE MUSIC' work/progress.
The Update or Regenerate library functions do the following:
- MPD scans the directory tree and extracts the metadata tags from the files to create or update its database (tag cache). The file is /var/lib/mpd/database.
- At the same time the thumbnail generator runs and scans the directory tree looking for embedded images or cover image files. The last track in each album directory is used to look for embedded cover art and see #1 for how cover image files are handled.
- Then when Tag or Album view is opened moOde reads the MPD database file and creates the "Library tag cache" located in /var/local/www/ which is used to populate Tag and Album views in the WebUI. The Library tag cache contains enhanced metadata thats not available in the MPD database.
- Note that Folder view queries the MPD database directly and does not have access to the enhanced metadata and other features of Tag and Album views.
4. My end game here is simply to see each folder on my USB stick look like a single album. Where the same song exists on a compilations album, I'd just like that album to be seen as it is. I've seen stuff on tags, but a) I can't see how I can set this for my choice and b) I think some of the information MoOde seems to gather must come from the internet? I dont see the likes of artist names anywhere in my files.
A common directory tree is below. For compilation albums set the Album Artist tag in each track to a consistent string for example "Various Artists".
root/
Artist/Album/Tracks
Compilations/Album/Tracks
root directory tree
Compilations directory