From 261c5541cd54b8c3a9a4ba88d82a69a5f634808c Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sat, 3 Jan 2026 02:24:53 -0800 Subject: [PATCH] cleanup path replacement --- src/shared/api/jellyfin/jellyfin-normalize.ts | 5 +---- src/shared/api/subsonic/subsonic-normalize.ts | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/shared/api/jellyfin/jellyfin-normalize.ts b/src/shared/api/jellyfin/jellyfin-normalize.ts index de64cc7f4..ca969c39a 100644 --- a/src/shared/api/jellyfin/jellyfin-normalize.ts +++ b/src/shared/api/jellyfin/jellyfin-normalize.ts @@ -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, diff --git a/src/shared/api/subsonic/subsonic-normalize.ts b/src/shared/api/subsonic/subsonic-normalize.ts index e54683f63..7f28635d0 100644 --- a/src/shared/api/subsonic/subsonic-normalize.ts +++ b/src/shared/api/subsonic/subsonic-normalize.ts @@ -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) ? {