fix: correctly populate ratingKey during music import for Plex and properly display artist name in the slide-over menu

This commit is contained in:
Pierre
2025-01-16 19:32:32 +01:00
committed by HiItsStolas
parent f9259cfcdf
commit cb6d271f22
2 changed files with 6 additions and 1 deletions

View File

@@ -547,6 +547,7 @@ class BaseScanner<T> {
externalServiceId,
externalServiceSlug,
mediaAddedAt,
ratingKey,
processing = false,
title = 'Unknown Title',
}: ProcessOptions = {}
@@ -570,6 +571,10 @@ class BaseScanner<T> {
newMedia.mediaAddedAt = mediaAddedAt;
}
if (ratingKey) {
newMedia.ratingKey = ratingKey;
}
if (serviceId) {
newMedia.serviceId = serviceId;
}

View File

@@ -261,7 +261,7 @@ const ManageSlideOver = ({
isMovie(data)
? data.title
: isMusic(data)
? `${data.artist} - ${data.title}`
? `${data.title} - ${data.artist.artistName}`
: data.name
}
>