fix: invalid podcast artist name

🤦
This commit is contained in:
JellyBrick
2024-02-16 08:41:00 +09:00
parent c5d0673b2f
commit b4083874ac

View File

@ -125,6 +125,18 @@ const handleData = async (
break;
default:
songInfo.mediaType = MediaType.OtherVideo;
// HACK: This is a workaround for "podcast" types where "musicVideoType" doesn't exist. Google :facepalm:
if (
!config.get('options.usePodcastParticipantAsArtist') &&
(
data.responseContext.serviceTrackingParams
?.at(0)
?.params
?.find((it) => it.key === 'ipcc')?.value ?? '1'
) != '0'
) {
songInfo.artist = cleanupName(data.microformat.microformatDataRenderer.pageOwnerDetails.name);
}
break;
}