Transmogrify for Plex: A browser extension that adds features to Plex/Web

So you're saying when you open a movie page you don't see the trailer link, actor profiles, or rotten tomatoes rating etc?

Yes, to see it I must refresh the page. I presume it's something wrong with the detection for when I go to a another page.

Which browser are you using and which version? Can you turn on debugging in the extension options page, open the browser console (ctrl-shift-j on chrome, ctrl-shift-k on firefox) and send me the console output when you open a page.

I get the same error as above (No other info etc) when I go into the player via plex.tv/web/app, but when I look at the server's IP directly, it shows up with everything.

FWIW, the console says "19:48:57.000 kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=38191[ksadmin] final status 0x0, allowing (remove VALID) page" when accessing the plex.tv/web version of the page

Hopefully that'll help with some troubleshooting!

Hmm I’m going to try to reproduce this later, but I’m the mean time could you provide the full output of the console when you encounter the error? It’s better to PM it

Wow. Thanks!

Idiot Alert!

I'm clearly missing something obvious here. I've set some relevant options but am not seeing changes in plex.tv / chrome for windows..

Attached example screen (downloaded from the support page) + how it actually looks in my setup + my settings

Idiot Alert!

I'm clearly missing something obvious here. I've set some relevant options but am not seeing changes in plex.tv / chrome for windows..

Attached example screen (downloaded from the support page) + how it actually looks in my setup + my settings


Hmm. Can you turn on debug in the settings, open the browser console with ctrl-shift-j, open a movie page and pm me the entire output of the console window?

PM's sent

Edit: Looks like we're getting somewhere. Have been getting some great support from moussa.uk

Pushed out version 0.8.1. As usual, the Firefox update is in review first. They've been super slow to review lately, and 2 weeks later and v0.8.0 still hasn't been approved! Publishing a new version sends me to the back of the queue, so this update may take a while to show up for Firefox users I'm afraid.

Anyway this update fixes two issues. One is with the extension not correctly fetching the Plex token sometimes, causing that issue where you had to reload the page to see anything. The second fix is for a bug where the missing_episodes plugin would take too long to fetch the necessary data (trakt's API has been slow lately), that if the user navigated away to another show's seasons page it would insert the missing episodes there.

If you like the extension I would appreciate a review or rating in the Chrome and Firefox extension stores thanks :)

Pushed out version 0.8.2. Again the Firefox review will take a while to be approved and pushed out automatically, but you can directly download the new version if you wish.

In this version I refactored a lot of code so that all API requests went through the same modules, which meant cleaner code and a new feature. The extension now caches all API requests (except Youtube trailer results), so that those API services are hammered less and ratings/missing episodes etc will appear much quicker. These results are all cached for 3 days. I also added split_added_deck to the options page so you can now enable/disable that like everything else, and I also fixed a bug with the rotten tomatoes button on the options page not hiding properly. Enjoy.

Hi moussa, thank you very much for your work, the extension is great. I hope Plex can introduce some of the features you've added into the main code base. However I've encountered one issue, when "Require authentication on local networks" is enabled in Settings->Server->Advanced->Connect, the extension doesn't appear to work. I'm using the latest version (0.8.2) and Chrome.

With debug enabled, it appears the issue could be an undefined plex token? It fails with a 401 when authentication is enabled.

Transmogrify for Plex log: plex_token fetched from document body - null 

Transmogrify for Plex log: Fetching XML from hxxp://192.168.1.10:32400/library/metadata/1?X-Plex-Token=undefined
GET hxxp://192.168.1.10:32400/library/metadata/1?X-Plex-Token=undefined 401 (Unauthorized)

Thanks again.

Edit:

Upon changing line 157 of main.js, from:

    var plex_token = PLEXWEB.myPlexAccessToken;

to:

    var plex_token = PLEXWEB.myPlexAccessToken || localStorage['myPlexAccessToken'];

Everything appears to work.

Hi moussa, thank you very much for your work, the extension is great. I hope Plex can introduce some of the features you've added into the main code base. However I've encountered one issue, when "Require authentication on local networks" is enabled in Settings->Server->Advanced->Connect, the extension doesn't appear to work. I'm using the latest version (0.8.2) and Chrome.

With debug enabled, it appears the issue could be an undefined plex token? It fails with a 401 when authentication is enabled.

Transmogrify for Plex log: plex_token fetched from document body - null 

Transmogrify for Plex log: Fetching XML from hxxp://192.168.1.10:32400/library/metadata/1?X-Plex-Token=undefined
GET hxxp://192.168.1.10:32400/library/metadata/1?X-Plex-Token=undefined 401 (Unauthorized)

Thanks again.

Edit:

Upon changing line 157 of main.js, from:

    var plex_token = PLEXWEB.myPlexAccessToken;

to:

    var plex_token = PLEXWEB.myPlexAccessToken || localStorage['myPlexAccessToken'];

Everything appears to work.

Thanks for the report! I was actually debugging an issue with the random picker when I ran into a bug that stopped the extension from working when you were on a local plex/web and on a shared server. I ended up rewriting a lot of code related to plex tokens and server information, and your fix is in there too. I'm going to do one more day of testing before pushing an update out, so thanks again.

Pushed out v0.8.3

The random picker button only shows up now when it's finished parsing the library items (this was need because it takes a little longer to fetch the data for really large libraries). The random picker posters are now generated using the PMS photo transcoder. There's a bunch of fixes related to how the extension handles shared libraries and also improvement for handling differences in using the extension on a local plex/web and on the plex.tv version. This should squash quite a few edge case bugs where you could get weird behaviour on some features when navigating between libraries. There is also improved token fetching, with a fix thanks to sam0. Enjoy.

Hopefully this is the last bug update before I start working on a feature I've wanted to explore for a while.

Today it stopped working both on chrome and on Firefox. Are you aware of this? What happened?

Today it stopped working both on chrome and on Firefox. Are you aware of this? What happened?


I'm not seeing any issues myself. Can you provide some logs. Turn in debugging in the extension settings, load up plex/web, open the developer console (ctrl-shift-j in chrome), copy the entire contents of the console and pm me the results.

I'm encountering a problem that I couldn't find in this thread with search. The problem is with any TV shows that have years as the season name rather than the normal numbering for example Match of the Day or Looney Tunes. When you go into the TV show's top level, where it has the show's synopsis and then the thumbnails for the individual seasons, a second after entering all the season thumbnails disappear and you cannot enter the seasons to choose an episode, the only option left is to play all. This happens with all shows with year based season naming.

At first I assumed it was to do with the missing season/episode view but clicking that so the eye icon has a line through it doesn't make the thumbnails show up. I guess it could also just be due to the fact it can't handle having such a high season number that a year would appear as, for example 1939, because no TV show would ever have one thousand nine hundred and thirty nine seasons obviously.

These pictures shows the Looney Tunes Example where there should be 38 season thumbnails but as you can see zero show, the same result when unchecking the missing season view.

*EDIT* I am using Transmogrify 0.8.3, PMS 0.9.9.14, Plex Web 2.2.7 and the problem occurs in both Firefox and Chrome.

I'm encountering a problem that I couldn't find in this thread with search. The problem is with any TV shows that have years as the season name rather than the normal numbering for example Match of the Day or Looney Tunes. When you go into the TV show's top level, where it has the show's synopsis and then the thumbnails for the individual seasons, a second after entering all the season thumbnails disappear and you cannot enter the seasons to choose an episode, the only option left is to play all. This happens with all shows with year based season naming.

At first I assumed it was to do with the missing season/episode view but clicking that so the eye icon has a line through it doesn't make the thumbnails show up. I guess it could also just be due to the fact it can't handle having such a high season number that a year would appear as, for example 1939, because no TV show would ever have one thousand nine hundred and thirty nine seasons obviously.

These pictures shows the Looney Tunes Example where there should be 38 season thumbnails but as you can see zero show, the same result when unchecking the missing season view.

*EDIT* I am using Transmogrify 0.8.3, PMS 0.9.9.14, Plex Web 2.2.7 and the problem occurs in both Firefox and Chrome.


That's an interesting sounding bug. I suspect it's because my code assumes seasons start from season 1, but I won't be able to investigate till tomorrow earliest as I'm away at the moment. I'll push out a fix for it when I have time. Thanks for the report

I'm not seeing any issues myself. Can you provide some logs. Turn in debugging in the extension settings, load up plex/web, open the developer console (ctrl-shift-j in chrome), copy the entire contents of the console and pm me the results.I 

I Just sent you a pm with log files.

I Just sent you a pm with log files.

Just wanted to drop a note that I believe I am in the same boat as manoscello - everything was working fine until a week ago, then

it just stopped working all of a sudden. I am using the latest Chrome and did not do any changes before it stopped working, so I would

suspect one of your updates had a hiccup of some sort. But hopefully manoscello's logs will help!