Skip to content

Commit

Permalink
🔀 Merge pull request #341 from richardfrost/fix_disney_plus_muting
Browse files Browse the repository at this point in the history
Update for Disney+ Muting
  • Loading branch information
richardfrost authored Oct 2, 2021
2 parents 811c482 + 161f830 commit 6d16b3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/script/webAudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default class WebAudio {

// When captions/subtitles are spread across multiple mutations, check to see if a filtered node is still present
if (!filtered) {
if (this.lastFilteredNode && this.lastFilteredNode.parentElement && this.lastFilteredNode.textContent === this.lastFilteredText) {
if (this.lastFilteredNode && document.body.contains(this.lastFilteredNode) && this.lastFilteredNode.textContent === this.lastFilteredText) {
filtered = true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/script/webAudioSites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default class WebAudioSites {
{ className: 'bmpui-ui-subtitle-label', mode: 'element', tagName: 'SPAN' },
{ className: 'bmpui-subtitle-region-container', mode: 'element', subtitleSelector: 'div.bmpui-container-wrapper > span.bmpui-ui-subtitle-label', tagName: 'div' },
],
'www.disneyplus.com': [{ mode: 'cue', videoCueHideCues: true, videoSelector: 'video.btm-media-client-element' }],
'www.disneyplus.com': [{ className: 'dss-subtitle-renderer-wrapper', mode: 'element', subtitleSelector: 'div.dss-subtitle-renderer-cue-window span.dss-subtitle-renderer-line', tagName: 'DIV' }],
'www.fox.com': [{ className: 'jw-text-track-container', mode: 'element', subtitleSelector: 'div.jw-text-track-cue', tagName: 'DIV' }],
'www.fubo.tv': [
{
Expand Down

0 comments on commit 6d16b3b

Please sign in to comment.