mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
cleanup path replacement
This commit is contained in:
@@ -211,10 +211,7 @@ const normalizeSong = (
|
|||||||
mbzTrackId: item.ProviderIds?.MusicBrainzTrack || null,
|
mbzTrackId: item.ProviderIds?.MusicBrainzTrack || null,
|
||||||
name: item.Name,
|
name: item.Name,
|
||||||
participants: getPeople(item),
|
participants: getPeople(item),
|
||||||
path:
|
path: replacePathPrefix(path || '', pathReplace, pathReplaceWith),
|
||||||
path && (pathReplace || pathReplaceWith)
|
|
||||||
? replacePathPrefix(path, pathReplace || '', pathReplaceWith || '')
|
|
||||||
: path,
|
|
||||||
peak: null,
|
peak: null,
|
||||||
playCount: (item.UserData && item.UserData.PlayCount) || 0,
|
playCount: (item.UserData && item.UserData.PlayCount) || 0,
|
||||||
playlistItemId: item.PlaylistItemId,
|
playlistItemId: item.PlaylistItemId,
|
||||||
|
|||||||
@@ -165,10 +165,7 @@ const normalizeSong = (
|
|||||||
mbzTrackId: null,
|
mbzTrackId: null,
|
||||||
name: item.title,
|
name: item.title,
|
||||||
participants: getParticipants(item),
|
participants: getParticipants(item),
|
||||||
path:
|
path: replacePathPrefix(item.path || '', pathReplace, pathReplaceWith),
|
||||||
pathReplace || pathReplaceWith
|
|
||||||
? replacePathPrefix(item.path || '', pathReplace, pathReplaceWith)
|
|
||||||
: item.path,
|
|
||||||
peak:
|
peak:
|
||||||
item.replayGain && (item.replayGain.albumPeak || item.replayGain.trackPeak)
|
item.replayGain && (item.replayGain.albumPeak || item.replayGain.trackPeak)
|
||||||
? {
|
? {
|
||||||
|
|||||||
Reference in New Issue
Block a user