fix missing tags
- fix linting - remove unnecessary fluff
This commit is contained in:
parent
fb98f867cd
commit
74e1c054b9
1 changed files with 65 additions and 74 deletions
|
|
@ -54,7 +54,7 @@ export default function MusicTrackNote({ event, className }: MusicTrackNoteProps
|
||||||
trackNumber: getTagValue('track_number'),
|
trackNumber: getTagValue('track_number'),
|
||||||
duration: getTagValue('duration'),
|
duration: getTagValue('duration'),
|
||||||
genres: getTagValues('t').filter(tag =>
|
genres: getTagValues('t').filter(tag =>
|
||||||
!['music', 'electronic', 'lofi pop'].includes(tag)
|
!['music'].includes(tag)
|
||||||
),
|
),
|
||||||
lyrics,
|
lyrics,
|
||||||
credits
|
credits
|
||||||
|
|
@ -134,8 +134,6 @@ export default function MusicTrackNote({ event, className }: MusicTrackNoteProps
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -148,13 +146,6 @@ export default function MusicTrackNote({ event, className }: MusicTrackNoteProps
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Only show alt if it's different from what we've shown
|
|
||||||
{metadata.alt && !metadata.credits && (
|
|
||||||
<p className="text-xs text-muted-foreground">
|
|
||||||
{t('music.altText')}: {metadata.alt}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
*/}
|
|
||||||
{metadata.genres.length > 0 && (
|
{metadata.genres.length > 0 && (
|
||||||
<div className="flex flex-wrap gap-2 mt-2">
|
<div className="flex flex-wrap gap-2 mt-2">
|
||||||
{metadata.genres.map((genre, index) => (
|
{metadata.genres.map((genre, index) => (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue