mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-15 04:11:47 +00:00
fix: invalid podcast artist name
🤦
This commit is contained in:
@ -125,6 +125,18 @@ const handleData = async (
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
songInfo.mediaType = MediaType.OtherVideo;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user