From da2ae42dbaa7951b3c844f77e3049bec36a3dd63 Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Sun, 27 Oct 2024 14:36:54 +0800 Subject: [PATCH] fix: source plugin need update audio --- src/plugins/source.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/source.ts b/src/plugins/source.ts index 206a83d..6f050a1 100644 --- a/src/plugins/source.ts +++ b/src/plugins/source.ts @@ -15,6 +15,8 @@ const switchSource = (art: Artplayer, source: artplayPluginSource) => { }); if (art.controls["quality"]) art.controls.remove("quality"); if (art.setting.find("quality")) art.setting.remove("quality"); + if (art.controls["audio"]) art.controls.remove("audio"); + if (art.setting.find("audio")) art.setting.remove("audio"); destroyOldCustomPlayLib(art); art.option.type = source.type; art.url = source.url;