Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Albums Tags & Power On/Off
#2
The cover art code in moOde can extract a single embedded over, the first one it finds in the file, or it can use a cover file if it finds one in the album directory.  The file names it looks for are below.

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'
);

If it can't find any of those files then it looks for any file with the following extensions.

Code:
$extensions = array('jpg', 'jpeg', 'png', 'tif', 'tiff');
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Albums Tags & Power On/Off - by leosaro - 02-11-2021, 08:20 PM
RE: Albums Tags & Power On/Off - by Tim Curtis - 02-11-2021, 08:55 PM
RE: Albums Tags & Power On/Off - by leosaro - 02-11-2021, 09:18 PM
RE: Albums Tags & Power On/Off - by Tim Curtis - 02-11-2021, 10:01 PM
RE: Albums Tags & Power On/Off - by Stephanowicz - 02-11-2021, 09:48 PM
RE: Albums Tags & Power On/Off - by leosaro - 02-11-2021, 10:08 PM
RE: Albums Tags & Power On/Off - by Tim Curtis - 02-11-2021, 10:14 PM
RE: Albums Tags & Power On/Off - by leosaro - 02-11-2021, 10:27 PM
RE: Albums Tags & Power On/Off - by leosaro - 02-11-2021, 11:48 PM
RE: Albums Tags & Power On/Off - by Tim Curtis - 02-12-2021, 12:02 AM

Forum Jump: