Plex Web Export

Great work thanks!

please help me





i want to know, how does it work.



i dowload the folder in my mac.

i activate PHP to be sure it work.



and now what i have to do.



what exactly i copy in my drop folder?

WHAT I HAVE TO RUN ( clip or index ) for the processiing to get all details of my library

i am lost

See the readme:



http://github.com/Dachande663/Plex-Export



Instructions: 1. You must have PHP installed on your system for this to work (PLEX Export does not have to be run on the system containing Plex Media Server however) 2. In your preferred shell/terminal enter the following command: php cli.php If Plex Media Server is running on a different machine, specify it’s URL with the -plex-url parameter e.g. php cli.php -plex-url=http://other-machine.local:32400* 3. Upon completion your plex-data directory will now contain a .js file and any related thumbnails. Access the index.html file in your web browser and enjoy :)*

@touf On you’re computer run the cli file in your shell, for example in Terminal type php /path/to/plexexport/cli.php. You can then open the index.HTML file in your browser to view your library. If you want to put your library on dropbox for others to see add the index.HTML file as well as the assets and plex-data folders.



Hope that helps make it a bit clearer for you.

hi guys excellent work on this!

but im having an issue.



so this all works perfectly on my local plex mac mini which has the library on it.

but when i copy the produced plexexport folder to another computer or even try to load index.htm remotely it just hands at “Loading data from PLEX…” and spins and spins.

but when i load the exact same file on the mac mini its on, it works fine.



any ideas on how to fix this?





thanks again!



Hi lordviper, as long as you copy the entire contents of plexexport it should work. If not, the best way to diagnose the issue would be to look in the console and see what errors are being thrown up. If you PM which browser you're using I should be able to help you further.

If you get an API key and require a particular player extension, could you turn this into a full plex webapp?



In theory yes, I don't know how the backend is currently set up in plex though to add this as a proper module. Its one of those things, if I had more time id look into it :/

ok so update on the issue.
it is ONLY present in chrome on the mac.
but works fine in every other browser?! weird huh?

but as soon as i move the folder to a local location it works fine in chrome, just not remotely.

but the problem isnt visible in any other browser.

thanks again for all the hard work in this.

i havent set up itunes in plex, but would this be able to list my itunes playlists/artists aswell?


once again excellent work!


Sounds like Chrome is being extra-cautious with the same origin policy. I'll try and replicate it locally but I have a feeling this is one bug I won't be able to fix.

At the moment it doesn't export any music data (mainly because I've only just added my own music library). I am looking into adding support for this but it'll most likey just be an overview of artists.

Just to let others know as well I'm still hunting down a few bugs e.g. file size issue. Uni work has taken priority at the moment though.

Beautiful work! Any plans to add episode viewing for TV? It would be nice to be able to see which episode you have. Also, watch status?



All in all - GREAT WORK!

@dirRtyjoe yes on all counts, one day.

What is the best way to have it find new additions to the PLEX library? Just re-run the PHP script or do we have to clear out some folders?



I re-ran it and it didn’t find anything new until I cleared the information… just curious if I should have to do this.



also, how is it counting the number of items in the library (shown in the top right)? Does this included individual TV episodes? I’ve been at 1,111 for a while even after adding new episodes…

@dirRtyjoe: yes, if you re-run the script it will update and write the new data to data.js along with any new thumbnails.



At the moment it counts movies + tv shows, not episodes though that will change as I now pull that data out.

I’ve skimmed this forum to see if there is any plan to integrate this into Plex rather that it being created by exporting it, but didn’t notice anything.



Are there plans to integrate this or has anyone from the Plex team brought up this possibility? It would be great to implement this in a similar way to how Transmit handles it’s web client.



Looks great!



Thanks,

Chris

Plex has something similar built in, well… the Media Manager.



http://ip.of.plex.machine:32400/manage



Woah, I didn't even realise Plex had the Media Manager set up like that!

Wow, this looks awesome!!! You did a really great job!!!



I’ve got two questions:


  • Is it possible to start playing the movies from the webpage or could this be a feature request?



    I’m using iRule to control my AV.

    In iRule you can include embedded webpages.


  • Is it possible to create a more simple/smaller webinterface for mobile devices (e.g. iPhone)?



    Greetz from Germany!!



    Thomas


The API allows for starting a movie etc, but it's the security/network implications that are what's stopping me at the moment. If you put the page up on a publicly accessible domain, anyone could control your media centre. I did look at using a password prompt but I ideally want to keep the final output as HTML/JS only so it will run on Dropbox's for example. If there's enough call for this I might put a flag in the exporter to let people enable this as they choose.

A cutdown version is a possibility. The HTML at the moment is fairly lean so I could do an iPhone version without needing to change much.

As with everything though it's time that's most costly. I've started University again (final year) and am just swamped (I'm typing this in a lecture now :/). I'm hoping to get a bit of time in this weekend to squash some bugs so I'll let everyone know more as I get stuff done.


Whooshh.....that saves me from alot of Remote work. Funny the devs don´t tell us about nice fetures like this.