Feature: extract embedded cover art from audio files to display as thumbnails
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m28s

This commit is contained in:
Elijah 2026-05-25 19:14:15 -07:00
parent d982ce66a8
commit ae6c97b9de
2 changed files with 23 additions and 1 deletions

View file

@ -1173,7 +1173,8 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
const isImage = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg'].includes(ext) || file.mime_type?.startsWith('image/');
const isVideo = ['mp4', 'mkv', 'avi', 'mov', 'webm', 'ogg'].includes(ext) || file.mime_type?.startsWith('video/');
const isOffice = ['docx', 'doc', 'pptx', 'ppt', 'xlsx', 'xls'].includes(ext) || file.mime_type?.includes('officedocument');
const isMedia = isImage || isVideo || isOffice;
const isAudio = ['mp3', 'flac', 'wav', 'm4a', 'wma', 'aac'].includes(ext) || file.mime_type?.startsWith('audio/');
const isMedia = isImage || isVideo || isOffice || isAudio;
if (ext === 'pdf') {
return (