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
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m28s
This commit is contained in:
parent
d982ce66a8
commit
ae6c97b9de
2 changed files with 23 additions and 1 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Reference in a new issue