mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 13:40:24 +02:00
remove audio prefix from subsonic contentType property
This commit is contained in:
@@ -159,7 +159,7 @@ const normalizeSong = (
|
|||||||
channels: item.channelCount || null,
|
channels: item.channelCount || null,
|
||||||
comment: null,
|
comment: null,
|
||||||
compilation: null,
|
compilation: null,
|
||||||
container: item.contentType,
|
container: item.contentType.startsWith('audio/') ? item.contentType.split('/')[1] : null,
|
||||||
createdAt: item.created,
|
createdAt: item.created,
|
||||||
discNumber: item.discNumber || 1,
|
discNumber: item.discNumber || 1,
|
||||||
discSubtitle: discTitleMap?.get(item.discNumber ?? 1) ?? null,
|
discSubtitle: discTitleMap?.get(item.discNumber ?? 1) ?? null,
|
||||||
|
|||||||
Reference in New Issue
Block a user