aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js/watch.js
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswa Kalyan Bhuyan <biswa.bhuyan@vegastack.com> 2025-03-29 12:35:50 +0530
committerLibravatarLibravatar Biswa Kalyan Bhuyan <biswa.bhuyan@vegastack.com> 2025-03-29 12:35:50 +0530
commit3fbaff704571293be83e2b56d36b761f42cce1ec (patch)
tree38ff650730359360c21f296b4ad5c47f01f20c30 /youtube/static/js/watch.js
parenta4e01da27c08e43a67b2618ad1e71c1f8f86d5cd (diff)
downloadyt-local-3fbaff704571293be83e2b56d36b761f42cce1ec.tar.gz
yt-local-3fbaff704571293be83e2b56d36b761f42cce1ec.tar.bz2
yt-local-3fbaff704571293be83e2b56d36b761f42cce1ec.zip
Update version v0.3.2HEADmaster
Diffstat (limited to 'youtube/static/js/watch.js')
-rw-r--r--youtube/static/js/watch.js3
1 files changed, 2 insertions, 1 deletions
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;