1
0
Fork 0
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:
Fedor Katurov 2019-10-14 16:14:35 +07:00
parent 13be0d67ab
commit e825db6d63
2 changed files with 4 additions and 1 deletions

View file

@ -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 })}>

View file

@ -74,6 +74,8 @@ export interface IFile {
metadata?: {
id3title?: string;
id3artist?: string;
title?: string;
duration?: number;
width?: number;
height?: number;