mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
added file title to metadata
This commit is contained in:
parent
13be0d67ab
commit
e825db6d63
2 changed files with 4 additions and 1 deletions
|
@ -77,7 +77,8 @@ const AudioPlayerUnconnected = ({
|
|||
|
||||
const title =
|
||||
file.metadata &&
|
||||
[file.metadata.id3artist, file.metadata.id3title].filter(el => !!el).join(' - ');
|
||||
(file.metadata.title ||
|
||||
[file.metadata.id3artist, file.metadata.id3title].filter(el => !!el).join(' - '));
|
||||
|
||||
return (
|
||||
<div onClick={onPlay} className={classNames(styles.wrap, { playing })}>
|
||||
|
|
|
@ -74,6 +74,8 @@ export interface IFile {
|
|||
metadata?: {
|
||||
id3title?: string;
|
||||
id3artist?: string;
|
||||
title?: string;
|
||||
|
||||
duration?: number;
|
||||
width?: number;
|
||||
height?: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue