Plex Web Export

@matrixagent you can sort by view count for now, it may return as a new filter :slight_smile:

Any known issues with Lion? It seems to have stopped working for me. I upgraded from SL to Lion yesterday, where it still worked.

Now I’m stuck with a 100% CPU eating php-process, it hangs after starting to scan the first section:


16:59:38 Welcome to Plex Export v2.0.1<br />
16:59:38 Task 1 of 2: Scanning Plex Media Server Library<br />
16:59:38 Gathering item information (this may take a while)<br />
16:59:38 Found Plex Library on "mymachine"<br />
16:59:38 Scanning 4 sections<br />
16:59:38 Scanning section: Name1



I dove into the code and it seems that the first method called after the last logged line is **init_section_object** in *plexapi.php* - I don't see anything that should/could cause a infinite loop there, however. My PHP reports *PHP 5.3.6 with Suhosin-Patch (cli) (built: Jun 16 2011 22:26:57)*.

@matrixagent I haven’t tested it on Lion yet but don’t see anything that should cause it to hang. If you open Console do you see any output? (Sorry, not sure where the system php outputs errors to.)

Nope, had already checked there. But good news: after a reboot it works. Although it makes me sad, that OS X now has become Windows. :wink:

I have successfully installed v2 now :slight_smile:



Could someone direct me how I would go about changing to the bacon template, or loading the bacon template… as simply as possibly please :slight_smile:


Sadly I have to report back with more bad news… it seems that on (my?) Lion it *only* works after a reboot. I'm not 100% sure what the pattern is, but what I can confirm by testing so far:

- It works directly after a reboot. Multiple times, not just the first run.
- No difference whether Plex itself is running or has been started.
- It stops working after the first modification via the Plex Media Scanner - adding new content, changing a poster or something like that.
- Afterwards it behaves as I previously described, restarting Plex Media Scanner does not fix it, so far I have not found a way to get it to work again other than rebooting.
- No errors from PHP whatsoever in the logs.

@matrixagent Uh oh. Might have to pick your brain when I get some free time (currently spending this bank holiday weekend working :/)

Is it there an option in v2 of Plex Web Export to load the page by library sections, like it does in v1? Trying to load up all the sections in one go just throttles the browser and computer to death, given that some of my home movie sections has a lot of files in it. :smiley:



Or is the solution to use he option ā€œ-sectionsā€ and create separate pages for each sections?



Anyhow, thanks for this nifty utility!

Hi Everybody!



I would like to know how to retrieve the video path using the API. I really can’t find this information anywhere ? Anybody with an idea ?

@hb2011 In the API get to a single item page (/library/metadata/123 IIRC). Within the XML tree will be one or more Parts, these represent the files that make up that item.

Somewhat of a novice here. I downloaded your plea export file, but how do I install it or get it to run? Is there an application anywhere or what am I missing?

Mhm, for a few weeks now the update of the export takes quite a while, php uses an entire cpu core (9X%), any ideas on how to tackle this problem? Any logs to look into?



Thank you.




Never mind, somehow after exporting to a different directory and then again to the former fixed it.

Hey,



I’m using v2 of the export - used to use version 1 and I seem to remember the info on a media item telling me its resolution - if it was 1080 or not etc.



Does v2 do this? if not could it? If it does… where odes it show that information? I can’t find it!



Thanks in advance.


  • Dreadix

Hi,

Only just started using Plex and found plex exporrt which is awesome!



But I cant get v2 to show nicely on my iPhone (v1 works on iPhone) - Is this broken? Or not yet implemented?



Nat

Hi all, sorry for being away for so long!



@fhb and @matrixagent: I’ve noticed the enormous amount of time it takes now. It appears to be something that has changed on the system, I’ve run it on an older machine which I know worked before and the only thing that’s changed is Plex so I’ll have to grab an old version at some point. Must find a fix for this as a matter of urgency.



@Nat: Yeah, the heavy use of JavaScript isn’t conducive to the iPhone. I will make a mobile stylesheet, just need time again :frowning:



Cheers guys.

Just downloaded v2, but can’t run cli.php successfully. It just hangs for 30min+



Any suggestions?



Alexander-Bruces-Macbook-Pro:~ Alec$ /Users/Alec/Downloads/Applications/Dachande663-Plex-Export-6386871/Dachande663-Plex-Export-6386871/cli.php

13:12:31 Welcome to Plex Export v2.0.1

13:12:31 Task 1 of 2: Scanning Plex Media Server Library

13:12:31 Gathering item information (this may take a while)



I have just updated Plex, so maybe this is the problem…

@BruceA Something has changed in a version of Plex, not sure how far back. I’ve tested on an older Leopard machine where the only variable was Plex so I’m hunting to find out what’s changed within that. In the meantime, it will work but my last run took upwards of 2 hours(!) to complete and ate up Plex while it was doing it. I’m going to add a message to the first post to warn other users about this until I find a solution. Sorry for the disappointment :frowning:

Not at all, I think Plex Export is fantastic. I’m surprised Plex haven’t asked to integrate it into the official builds.



I’ll just rollback the Plex version. Good luck finding the problem.

If it’s useful to poke at I’ve got a big library (more than 20,000 video files) exported at:

http://movies.uberzach.com/



It’s a v1 export right now, but if I don’t run into whatever bug has been hanging v2 exports it should be v2 in the next couple of hours.

I had trouble with v2.0.1 – after ~5 minutes of normal execution both the PMS and the PHP process got stuck spinning on something. PMS stopped responding to new requests, but that clearly wasn’t the only problem because PHP was chewing CPU time as well, not just waiting on a socket. I let that condition last for over and hour with no apparent change from either process.



But all was well when I set the cURL concurrency to 1. Honestly I’m not sure the concurrency is worth the hassle unless there’s large latency, and even in that case probably more like 5 simultaneous requests than 96. For reference, I exported 1054 top-level items (20,300 items including individual TV episodes) in 264.975 seconds. That’s a non-cached run against a local PMS on a MacMini Core2Duo.



In any case, I’ve got a v2 export up now at:

http://movies.uberzach.com/



And with concurrency disabled the version from github is working fine for me.