api/istream: remove icy-metadata header if sent by client

This commit is contained in:
jj 2024-12-04 18:19:07 +00:00
parent 6c39edbc10
commit 6f0a8196ff
No known key found for this signature in database

View file

@ -123,6 +123,10 @@ async function handleGenericStream(streamInfo, res) {
}
export function internalStream(streamInfo, res) {
if (streamInfo.headers) {
streamInfo.headers.delete('icy-metadata');
}
if (streamInfo.service === 'youtube' && !streamInfo.isHLS) {
return handleYoutubeStream(streamInfo, res);
}