From 6d4b161b0609ceff6e3c29d0f4cac4668125c931 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 7 Jun 2021 21:56:57 +0200 Subject: [PATCH] Fix for disneyplus maybe? --- src/ext/conf/ExtConfPatches.js | 14 ++++++++++++++ src/ext/conf/ExtensionConf.ts | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/ext/conf/ExtConfPatches.js b/src/ext/conf/ExtConfPatches.js index bf5bcf7..b9faabb 100644 --- a/src/ext/conf/ExtConfPatches.js +++ b/src/ext/conf/ExtConfPatches.js @@ -501,6 +501,20 @@ const ExtensionConfPatch = [ // do nothing } } + }, { + forVersion: '5.0.4', + updateFn: (userOptions, defaultOptions) => { + try { + userOptions.sites['wwww.disneyplus.com'].DOM.player = { + ... userOptions.sites['wwww.disneyplus.com'].DOM.player, + querySelectors: ".btm-media-client-element", + useRelativeAncestor: false, + videoAncestor: 1 + } + } catch (e) { + // do nothing + } + } } ]; diff --git a/src/ext/conf/ExtensionConf.ts b/src/ext/conf/ExtensionConf.ts index c0874b9..009fcc0 100644 --- a/src/ext/conf/ExtensionConf.ts +++ b/src/ext/conf/ExtensionConf.ts @@ -1070,9 +1070,10 @@ const ExtensionConf: SettingsInterface = { DOM: { "player": { "manual": true, - "querySelectors": ".btn-media-clients", + "querySelectors": ".btm-media-client-element", "additionalCss": "", "useRelativeAncestor": false, + "videoAncestor": 1, "playerNodeCss": "" } },