Plex Web Export




Yes on OS X and the dir looks to be writeable


Ah, I think I know what's happening. You have to run cli.php from the directory it's in i.e.
cd /Users/mini/Desktop/plexexport
php cli.php

Otherwise the document root isn't plexexport and as such it'll try and save the files to another location. Hopefully that'll work now.



Tada, that made it work, thanks alot :)


/mkh

Just to let everyone know, I’ve released a new version today with some changes. From now on, the latest version can be found in the first post on the first page to save people trawling through out of date information.



ADDED additional media information (size, bitrate, codecs)

FIXED error handling on unusual file set-ups and data as reported by Plex



Also, to answer MrAcid’s question, as long as Plex Export is run on the same local network as Plex Media Server it will not require authentication even if authentication is enabled on the PMS. I may eventually look into adding auth support but at the moment there aren’t any API docs to even begin looking at :confused:



As usual, any bugs you spot let me know :slight_smile:

Works like a charm on my library - thanks a lot :slight_smile:

Just one thing - when I update/change the poster on the media server, it won’t download the new one when I run cli.php again. Would be great if the script would detect a changed poster…

@xiocc yep, the only way to check for updated thumbs at the moment would be to re-download the images all over again. I’m looking into a better fix but in the meantime you can delete the image in plex-data and re-run the cli script.

Wow, this looks great, thanks for making it!



Little thing I noticed: aspect ratio is after Audio:, not Video:



Is it possible to make the starring names clickable and see all the movies with that actor/actress?




Ah good catch! I'll have to tweak all of that section, at the moment it's literally a dump from Plex :/

I'm looking into letting you see by actor etc but at the moment it would mean a lot of reworking. V2 maybe.

It seems like the rating doesn’t work in Firefox?

In Safari it looks right.

Seems like it’s not working in Google Chrome…? Safari is working fine but Chrome is stuck on “loading…” when I open the index.html…

Thanks for the browser issue reports, I’ll release a fix as soon as I’m home.



It seems to be working correctly on my local machine in Chrome. If you go to plex-data/data.js can you confirm the file is there? If so, try deleting it and re-running the cli script, it may have exported a bad record which is causing Chrome to choke (I believe Chrome uses a different JS engine, hence why Safari is still working).

Wow. I really hope this is adapted into the web front end for plex. I remember that there was some work on that before nine came out.

Uploaded a new version that fixes some issues in various browsers, ratings should now show up and aspect ratio is in the correct place. As usual, any problems drop me a line :slight_smile:



@Harley Hooligan that would be cool! I’m looking for the best way to get the script to automatically update as and when Plex does, the API’s a bit of a blind alley at the moment though.

This is Kool!



An auto-update solution would make it perfect.

Dachande663 : I’ve got a problem, added a section for movies but they all have the same File: size which is set to 2GB…



It only happens for movies, TV shows work fine…



/mkh



It seems the Plex API sometimes reports incorrect file sizes (some of my HD films are apparently 55Mb). I don't know why it would say they're all the same size, are they roughly equal in size in Finder?



Nope, some files that are 12+ GB in size are still listed as 2GB, and we are talking ALL movies, but only in one cat... thats the weird part.

I’m a total beginner but when I run the command line in terminal I get -bash: /Applications/plexexport/cli.php: Permission denied. What am I doing wrong?



Thanks in advance for the help.

I get the following result when I run a command from Terminal on my laptop to the server (htpc). It almost wants to work, is this the wrong way to go about this? It runs fine when I run it on the server.



Powerbook:plexexport daa$ php cli.php -plex-url=http://htpc.local:32400

22:05:33 Welcome to the Plex Exporter v1

22:05:33 Searching for sections in the Plex library at http://htpc.local:32400/

22:05:33 Found 6 sections in this Plex library

22:05:33 Scanning section: EyeTV

22:05:33 Error: No items were found in this section, skipping

22:05:33 Error: No items were added for EyeTV, skipping

22:05:33 Scanning section: Movies

22:05:33 Found 14 movies in Movies

22:05:33 Scanning movie: Ambush



Fatal error: Call to undefined function imagecreatefromstring() in /Volumes/server/Documents/Plex/plexexport/cli.php on line 379