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