api/youtube: add an option to use HLS streams
- added `youtubeHLS` variable to api - added youtube HLS parsing & handling
This commit is contained in:
@@ -114,7 +114,7 @@ async function handleGenericStream(streamInfo, res) {
|
||||
}
|
||||
|
||||
export function internalStream(streamInfo, res) {
|
||||
if (streamInfo.service === 'youtube') {
|
||||
if (streamInfo.service === 'youtube' && !streamInfo.isHLS) {
|
||||
return handleYoutubeStream(streamInfo, res);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user