Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Plex Web Export

Dachande663Dachande663 Posts: 206Members, Plex Pass ✭✭

Plex Export

Plex Export creates a local copy of your Plex library that you can share without requiring access to the media server. Uses PHP to generate a HTML/JavaScript website with multiple sections, live filtering and media information.

Information: http://hybridlogic.co.uk/code/standalone/plex-export/

Download: https://github.com/Dachande663/Plex-Export/archive/master.zip

Support: https://forums.plex.tv/topic/136875-rel-plex-export/

Source: https://github.com/Dachande663/Plex-Export

«13456734

Comments

  • henrikhenrik Posts: 198Members, Plex Pass Plex Pass
    Dachande663 wrote on 06 October 2010 - 09:36 PM:

    Hi All,

    I'm a web developer by trade so I've being playing around the past few days making a drop-dead simple exporter for Plex. In effect, given a library URL it spits out a bunch of JSON files and associated metadata which can then be read by a HTML page. The idea is very similar to Delicious Library's HTML export if anyone's used that before. At the moment I've got it exporting the JSON and a very basic HTML page displaying the data but would like to know what features people would like to see and more importantly if anyone with better Photoshop skills than my own would be willing to design a more aesthetically pleasing design (I can handle all HTML slicing work)?

    Edit: A quick preview: http://drbl.in/62058 I'll put an actual live preview up when it's in a more workable state.

    I like it! How about adding the cover picture as well? Would that be possible? Maybe a link to IMDB or themoviedb for easy access to read more?
  • Dachande663Dachande663 Posts: 206Members, Plex Pass ✭✭
    Cover art is included, I'm just working on the best way to resize it to fit. As for imdb etc I'm going by what's returned by the api so I shall have to see.
  • MrAcidMrAcid Posts: 185Members, Plex Pass
    This looks very promising! Nice job!

    A feature I would really be keen on using: search.. :)

    I'd like to access this information and see if I already have a movie (to a lesser extend TV Shows) before I add it to my "wishlist".
  • Dachande663Dachande663 Posts: 206Members, Plex Pass ✭✭
    Search is definitely on my todo list, hoping to do some kind of live filtering similar to the new media manager.
  • Dachande663Dachande663 Posts: 206Members, Plex Pass ✭✭
    edited October 2010
    Made some progress today on visual mockups for how it may look. Dribbble'd some preview shots as well, must put up a full preview when I've started on the HTML.

    http://l0ke.com/bc
    http://l0ke.com/bd

    Edit: If any Plex staff members are reading this; what's the policy on re-using existing Plex assets (primarily logo and media type icons)? I'm trying to stay true to the default Plex interface but can change if necessary.

    Edit: Added some full screenshots;
    http://www.flickr.com/photos/dachande663/5062351491/
    http://www.flickr.com/photos/dachande663/5062961898/
  • jayman978jayman978 Posts: 4,467Members, Plex Pass Plex Pass
    Very cool. I like what I see :) Probably the best thing to do would be to PM Elan to get permission to use those assets. It would be just a formality really :)
  • Dachande663Dachande663 Posts: 206Members, Plex Pass ✭✭
    Okay people, here's the first alpha. There's still an awful lot of work to be done (see notes beneath) but for a general preview click here:

    http://l0ke.com/plex

    Notes:
    • Only tested in Safari/Chrome/Firefox (latest). As Plex is (currently) Mac only, IE is a lower priority however I do want it to work across browsers where possible.
    • Data is loaded in via JavaScript. This still needs a lot of work for efficiency purposes (live filtering for example). Also, will remove JSONP chain.
    • Positioning bugs of the popup (written very quickly hence lack of general checks)


    Features still to add:
    • Additional item information: genres, seasons/episodes for shows, support for additional media types.
    • Additional filters for genres, ratings etc (similar to Plex itself)
    • Make the exporter itself much more robust, it currently just spits out a JSON file and the raw image data. Got to resize images etc etc.


    If anyone finds any bugs or has feature suggestions, please add them/PM me! I'm going to release the exporter tool as soon as it's up to a workable state, it will however be in very early stages so I'll need some willing volunteers with large and diverse libraries to help test it out, again PM me if you're interested.

    Cheers,
    Luke.
  • mkhmkh Posts: 393Members, Plex Pass Plex Pass
    Okay, this is pretty ****** cool.


    nuuuf said.
  • Fressa0815Fressa0815 Posts: 61Members, Plex Pass Plex Pass
    Great!
  • xioccxiocc Posts: 7Members, Plex Pass
    This is great and absolutely beautiful! I think your Photoshop skills are awesome, no need to change anything on the design... Looking forward to fetch the exporter tool somewhere!
  • shiree1shiree1 Posts: 4Members
    awesome! it's beautiful.

    i'd like to see recent additions. is this possible?
  • MrAcidMrAcid Posts: 185Members, Plex Pass
    I really like where this is going! :)
  • Dachande663Dachande663 Posts: 206Members, Plex Pass ✭✭
    Okay, the first alpha is now available for download. Again, this is ALPHA quality. I've tested it with only my own library at the moment so I'm mainly looking to see how well it handles others (foreign characters, multiple collections etc). If people can post anything they notice below I can get fixing.

    The zip file contains the HTML template and necessary assets along with the command line PHP script to generate the data. The README file should get you started but if you have any problems just let me know.

    Enjoy :)

    http://l0ke.com/bf
  • henrikhenrik Posts: 198Members, Plex Pass Plex Pass
    That looks really cool! very easy to install, and it works just fine. Thanks so much for that!
    Now we just need to integrate that with the PMS to allow updating from a browser ;-)

    Is it possible to extract the file quality as well?
    Finally, would it be possible to have a "update from library" button, maybe requiring a password to avoid people doing it just for fun. Or on an admin page, just to make it easier to keep it up to date. Assume that you would just run the "php cli.php -plex-url=http://other-machine.local:32400" command to update the library information.

    Maybe link to the imdb/moviedb site for each movie?

    but, thank you for this. Looks really good for an alpha release
  • mkhmkh Posts: 393Members, Plex Pass Plex Pass
    Getting this error :

    08:20:48 Scanning movie: The Golden Compass
    08:20:48 Error: imagepng(): Unable to open 'plex-data/thumb_1835.png' for writing: No such file or directory on line 370

    /mkh
  • MrAcidMrAcid Posts: 185Members, Plex Pass
    edited October 2010
    Great job Luke!

    When running on a remote computer using the -plex-url= string, does it work when you use a username and password for the Plex Media Server? Probably not.. (yet)? :)
  • Dachande663Dachande663 Posts: 206Members, Plex Pass ✭✭
    @mkh can you confirm there is a plex-data directory?
    @MrAcid I haven't tested it with authentication yet, I doubt it will work as is. Will be a feature to add asap.
    @henrk File information is available, I just need to extract it and display it. For updates it is just a case of re-running the cli script so I'll look into that. And lastly, I can't find any IMDB data via the API yet so I'm still hunting for the best way to do that.

    Thanks for all the comments so far guys!
  • mkhmkh Posts: 393Members, Plex Pass Plex Pass

    @mkh can you confirm there is a plex-data directory?
    @MrAcid I haven't tested it with authentication yet, I doubt it will work as is. Will be a feature to add asap.
    @henrk File information is available, I just need to extract it and display it. For updates it is just a case of re-running the cli script so I'll look into that. And lastly, I can't find any IMDB data via the API yet so I'm still hunting for the best way to do that.

    Thanks for all the comments so far guys!



    Yes I do have the plex-data folder..


    mini:~ mini$ php /Users/mini/Desktop/plexexport/cli.php
    14:24:45 Welcome to the Plex Exporter v1
    14:24:45 Searching for sections in the Plex library at http://localhost:32400/
    14:24:45 Found 5 valid sections out of a possible 6 sections in this Plex library
    14:24:45 Scanning section: Documentary
    14:24:45 Found 5 movies in Documentary
    14:24:45 Scanning movie: Area 51: The Real Story
    14:24:45 Error: imagepng(): Unable to open 'plex-data/thumb_1601.png' for writing: No such file or directory on line 370
    14:24:45 Scanning movie: The Bob Lazar Tape
    14:24:45 Error: imagepng(): Unable to open 'plex-data/thumb_1606.png' for writing: No such file or directory on line 370
  • Dachande663Dachande663 Posts: 206Members, Plex Pass ✭✭
    @mkh okay, do you know if the directory is writeable? (I'm assuming you're on OS X, Get Info should be able to tell you).
  • mkhmkh Posts: 393Members, Plex Pass Plex Pass

    @mkh okay, do you know if the directory is writeable? (I'm assuming you're on OS X, Get Info should be able to tell you).



    Yes on OS X and the dir looks to be writeable
«13456734
Sign In or Register to comment.