fix previous merge issues

This commit is contained in:
chrisk325 2026-03-06 04:19:24 +05:30 committed by GitHub
parent 7bd4779745
commit 1f64ee453a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -668,9 +668,12 @@ export class YouTubeExtractor {
// Priority: HLS > progressive muxed
// HLS manifests don't need validation — they're not CDN segment URLs
if (bestHls) {
logger.info('YouTubeExtractor', `Using HLS manifest: ${summarizeUrl(bestHls.manifestUrl)} ${bestHls.height}p`);
// Return the specific best variant URL, not the master playlist.
// Master playlist lets the player pick quality adaptively (often starts low).
// Pinning to the best variant ensures consistent high quality playback.
logger.info('YouTubeExtractor', `Using HLS variant: ${summarizeUrl(bestHls.url)} ${bestHls.height}p`);
return {
videoUrl: bestHls.manifestUrl,
videoUrl: bestHls.url,
audioUrl: null,
quality: `${bestHls.height}p`,
videoId,