Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Commit

Permalink
Plex plugin: re-add mediaInfoElement
Browse files Browse the repository at this point in the history
Forgot to re-add this previously
  • Loading branch information
Rasmus Thomsen authored and Rasmus Thomsen committed Oct 29, 2017
1 parent bd37210 commit aa8c341
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/plex/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ function update() {
else if (document.querySelector('[aria-label=Play]') !== null)
playbackStatus = mellowplayer.PlaybackStatus.PAUSED;

// We'll use this multiple times later on as it packs all the media info
var mediaInfoElement = document.getElementsByClassName('AudioVideoPlayerControls-buttonGroupLeft-3kwFX')[
0].children[0].children[0];


try {
var songTitle = mediaInfoElement.children[1].children[0].title
} catch (e) {
Expand Down

0 comments on commit aa8c341

Please sign in to comment.