From 3fbaff704571293be83e2b56d36b761f42cce1ec Mon Sep 17 00:00:00 2001 From: Biswa Kalyan Bhuyan Date: Sat, 29 Mar 2025 12:35:50 +0530 Subject: Update version v0.3.2 --- youtube/static/js/watch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'youtube/static/js/watch.js') diff --git a/youtube/static/js/watch.js b/youtube/static/js/watch.js index 95d9fa7..00803cf 100644 --- a/youtube/static/js/watch.js +++ b/youtube/static/js/watch.js @@ -5,8 +5,9 @@ function changeQuality(selection) { let videoPaused = video.paused; let videoSpeed = video.playbackRate; let srcInfo; - if (avMerge) + if (avMerge && typeof avMerge.close === 'function') { avMerge.close(); + } if (selection.type == 'uni'){ srcInfo = data['uni_sources'][selection.index]; video.src = srcInfo.url; -- cgit v1.2.3-59-g8ed1b