Plex Web Export



Hi when I do step 3 it says 'no such file or directory'?

Maybe I haven't enabled that PHP thing properly?

Cheers


For line 3, make sure you are changing directory to the Plex folder you've downloaded. It may not be called Dachande663-Plex-Export-a517074 and it almost certainly won't be in /Users/user.

In other words:
Download the PlexExport file from GitHub
Put it on your Desktop and call it plexexport
In Terminal type: php ~/Desktop/plexexport/cli.php


OK I did that and now the index.html file is 4kb, is that right? I try and open it and Safari spins for ages :(


The index.html page shouldn't be updated but if you look in plex-data you will see a load of images and other files if the export has completed. In Terminal did you see any text? The last line will say how much data was written out.


I've attached what was outputted, is it ok to even put on here haha

Scratch that I put the wrong symbol, but it does give an error message saying "Data directory is not writeable"


Ah, use ~/Desktop, not -/Desktop (the tilde key is to the left of z on my MBP)

Scratch that I put the wrong symbol, but it does give an error message saying “Data directory is not writeable”



Can you confirm there is a directory called plex-data inside the PlexExport folder and that it's not somewhere unwriteable?


Yeah it's in there and I assume its writeable?

Sorry for the hassle



Ahhhh my bad it was locked somehow, I unlocked it and it's now ploughing through my library, you sir are a legend!!!!

Now to make it work with dropbox hmmmm


Just as I sent you a PM as well :P No worries, don't know why that might have happened. Easiest way to get it in dropbox is to either put the entire plexexport directory itself in your dropbox and run it from there or just copy over the index.html, assets and plex-data folders.


Haha I know, you are on the ball!

And you're a dead set superstar too, thanks for all your help :)


Why not symlink the plexport directory to your dropbox? Then whenever you run it, dropbox will autoupdate based on that symlink. See here: http://wiki.dropbox.com/TipsAndTricks/SyncOtherFolders for reference.

As an aside, I use this method to keep sections of my documents folder perma-synced with dropbox.

@expressexcess: thanks for sharing, works like a charm!



My PlexExport

I totally love plexport. Works like charm. One request for me and I think for many more.

While browsing the library I figures that many titles are starting with “the …”.

In the alphabetical order this would be great to be excluded/ignored. Same for “der”, “die” and “das”.

This would fix the German sorting as well.



Titles beginning with the are sorted as you'd expect, I'll definitely look at adding international support.

BTW this is the message I am getting:


<br />
22:31:01 Error: imagecreatefromstring(): Data is not in a recognized format on line 497<br />
22:31:01 Error: imagesx() expects parameter 1 to be resource, boolean given on line 498<br />
22:31:01 Error: imagepng() expects parameter 1 to be resource, boolean given on line 511<br />
22:31:01 Error: imagedestroy() expects parameter 1 to be resource, boolean given on line 512<br />




Thanks, as I suspected it's choking trying to process the image as it can't find it.

I have some errors when generating the files:



<br />
<br />
14:06:04 Scanning movie: Diana Krall Live in Rio<br />
14:06:04 Error: imagecreatefromstring(): Data is not in a recognized format on line 497<br />
14:06:04 Error: imagesx() expects parameter 1 to be resource, boolean given on line 498<br />
14:06:04 Error: imagepng() expects parameter 1 to be resource, boolean given on line 511<br />
14:06:04 Error: imagedestroy() expects parameter 1 to be resource, boolean given on line 512<br />
14:06:04 Scanning movie: Dido Live at Brixton Academy<br />
14:06:04 Error: imagecreatefromstring(): Data is not in a recognized format on line 497<br />
14:06:04 Error: imagesx() expects parameter 1 to be resource, boolean given on line 498<br />
14:06:04 Error: imagepng() expects parameter 1 to be resource, boolean given on line 511<br />
14:06:04 Error: imagedestroy() expects parameter 1 to be resource, boolean given on line 512<br />





These are Home movies (music videos won't get scraped correctly) so there isn't any meta data.
But I have added some covers by myself

EDIT: ah, same error as described above...


Thanks for all these. At the moment I'm flying blind as there doesn't seem to be any information on just what the API from Plex can return so it's only be people like yourself pointing out omissions that I can improve the export. Current fixes and requests are queuing up in my todo list at the moment, I have four weeks left to finish my final thesis :/