Plex Export

Plex Export allows you to export your Plex Media Server Library to an interactive HTML page that can then be uploaded and shared with others.

Download: GitHub download
Preview: My Movies
Source code: GitHub repo

Features include:

  • Media library to JSON exporter
  • Search box with live filtering
  • Sort by rating, release date and name
  • Filter by genre
  • View information on a film or TV show including cast, runtime etc
  • Lazy loading of images for those with 500 films

Plex Export requires PHP to be installed for the command line exporter to be run, however the final page can be run on any webserver.

50 Responses to Plex Export

  1. Jonas says:

    Looks really good!

    One thing I would like to see added, would be to be able to browse individual tv episodes, and sort them by when they were added in Plex. This would make it easy for people on my lan to see what is new.

    • Luke L says:

      @Jonas TV episode support is planned, but it’ll require a larger rewrite of code which is why I’m holding off at the moment.

  2. Danny says:

    Gorgeous! I love this. I had posted a request for this on plexapp’s forums but didn’t hold my breath. This came out wonderful. Donation Sent!

  3. Atrolon says:

    Love this Exporter, great job :)

    A watch/unwatch feature would be cool

    Thanks

  4. Fredrik says:

    It would be quite cool if the movies were accessible as html5 movies from the “web export” i.e. the web export provides a link to Plex media server’s html5 movie.

    • Luke L says:

      This has been requested but has currently being left out for two reasons: when sharing your library it may not be able to access Plex unless this has been set up correctly i.e. a support nightmare. And secondly, providing access to copyrighted materials online is sure to end badly. The only way to prevent this is to require a password or similar, but this then requires additional server-side code which will negate the portability of the current system (many people currently use Dropbox to host their export).

  5. Josselin says:

    Awesome job ! thanks a lot !

  6. Pingback: Exporter sa médiathèque sur le web | Oncleben31.cc [fr]

  7. Paul says:

    Works great for me!
    Thanks a lot for the feature.

  8. Pingback: Vous utilisez Plex ? Vous devez essayer ça ! @ Un, deux, trois, blog !

  9. Pierro says:

    Thanks a lot for that, it works like a charm, even with movie summary in french.

    Some artworks are missing but I think it’s because they are manually added. I suppose it will be corrected in the next release.

    One request if it’s not too hard to do : could you find a way to let us translate the menu and other language element in French for example ?

    I can do the translation for you, but, you have to find a way to not to have to do it at each update…

    I hope my comment is clear ! :-)

    Keep the good work, I will be definitely doing a donation if you can make it translatable !

  10. robert says:

    Great tool – working fantastic and the generated pages are awesome! Thank you very much…

  11. Akrug says:

    Lovely interface. If this could work as a remote control for Plex, it would be the best looking remote I’ve ever seen!

  12. Guest says:

    I’m trying to integrate the Plex exported webpage into my WordPress-based blog. Currently, I have to do tons of edits on your CSS to resolve conflicts with my WordPress theme. I’d like the next version to be WordPress-friendly with unique names space for plex-related stuff, etc.

    • Luke L says:

      Because of the dynamic nature of Plex Export, integrating it into another site is possible but not recommended. The new version does feature more specific ID and classes for roles, but I can’t guarantee it will work 100% out of the box. Any chance I can see your integrated page to make future tweaks?

  13. Jon Hollamby says:

    First of all, love your work sir, this is a fantastic effort. I do have a few questions though, when I view the page on a PC, I get some weird things happening. In IE, nothing loads, but this is to be expected really. In Firefox on the other hand, it seems to think it’s an iPhone and displays the site using that CSS file rather than the normal one. Any ideas why that would be the case? Looking at the HTML:

    I have a feeling that this should be amended slightly to correct this issue.

    Any thoughts?

    Thanks!

    • Jon Hollamby says:

      Grrr, the code didn’t show up…was just looking at the stylesheet links, I’m sure you know what I’m talking about :)

    • Luke L says:

      Thanks, I didn’t actually test the export on Windows (mentally justified it by saying Plex itself is Mac only), but it is on my todo list for version two as who knows might view it. If you use the contact form you should be able to send me the code snippet you mentioned.

  14. Pingback: Bram.us » Plex Export

  15. TV says:

    This a great project. I would love to se:

    filter by year

    and support to Export my music library from plex. It seems to only do TV & Movies

    Thanks

  16. David says:

    That’s gorgeous, thanks a lot.
    I just translated it into french, send me an email if you are interested !

  17. Wow… I have been looking for something like this for some time now and when I found your site I though that this might get close… I was wrong however… this is EXACTLY what I was looking for and it looks so fancy!!! Really a good job.

    Only thing I was wondering (don’t know if it is possible and/or easy to accomplish) but would it be possible that you provide this tool via the plex apps? So that you can export this library from within Plex and maybe that it even automatically saves the output on an FTP server (so that it is available online)?

    If not then no worries, I will use the tool this way as well since I am really loving it!!!

    Thanks,
    Nico…

    • Luke L says:

      Hi Nico, I will look at asking Plex to show this via the Tools but I’m not sure how close a fit it is to them. And glad you like it.

  18. Daniel says:

    I’d been looking for an export tool for quite a bit (never went beyond writing a short perl script to extract my movie list), and this is exactly what I needed.

    Thank you for the great tool!

  19. ipguy says:

    amazing, beautiful, fantastic, exactly what I was looking for !!
    one question, is there any way to sort by date, not release date of the movie but the date of the avi file ?

  20. stefan says:

    thank you! thats really a great tool.

    due to chromiums js restrictions it fails when running locally (XMLHttpRequest cannot load plex-data/data.js. Origin null is not allowed by Access-Control-Allow-Origin.) . but that can be fixed by loading the data.js file with a script tag in the header.

    • Luke L says:

      It can be, but it then makes the source file available to others much more easily. The new version (that used a JS DB) did use JSONP initially.

  21. AKIRA says:

    Sorting by date added like in Plex would be great, otherwise awsome tool!

  22. HB2011 says:

    Great Job
    I would like to know if it is possible to retrieve the path of the media. Is it possible ? Where can i find info to add this data to your scripting ?

    Thanks

    • Luke L says:

      The path to the media e.g. /Users/hb/movies/juno.m4v isn’t saved as you should be using the Plex API to display the stream. If you read http://elan.plexapp.com/2010/12/24/happy-holidays-from-plex/ it provides more information on how to get a stream.

      • HB2011 says:

        Thanks for the quick answer !
        Actually i do not plan to stream the media because it is not possible with the set top box i use. For my project, i need to develop a script that will retrieve all metadata, pictures and media paths and put it in a folder or container in the Hard Drive of my set top box.

        I will also develop a plex player on my set top box using this container, that is why i need to extract the path.
        Do you think it is possible with the plex api ?

        • Luke L says:

          Definitely, the paths are available via the API for each media item, just look for the tags.

          • HB2011 says:

            I’m still struggling with the actual media path. I cannot find a way to retrieve this info, can you detail this please ?

            Thanks

  23. CRiMe says:

    Works very well. Thanks so much!

    Just one question:
    Is it possible, after uploading the folder to Dropbox, to view it on an iPad or iPhone?

    Thanks.

  24. Julian says:

    Hi,

    Thanks for this, it’s really awesome! One feature request though:
    I really like the sort option, but it would be great if you would be able to sort by recently added, so that I can see which movies my friends added lately.

    Thanks!

    Julian

  25. Julian says:

    Oh wow, I just see a few comments above that there’s a V2 version that does include this.

    Going to check that out now! Thanks!

  26. MACscr says:

    Just an idea, but why not add links to trailers as well? BTW, great work on this. I havent used it yet, but it looks pretty amazing. I really think its something that Plex should offer directly from the media server versus having to export it, etc.

    • Luke L says:

      Unfortunately I can’t get the trailer data out of Plex, but if you know a service that can provide them for an IMDB title or similar please let me know!

  27. Daniel says:

    Hey, this looks great but the download site is just giving me a server error atm, so hopefully it’s fixed soon and I can download it!
    Cheers :)

  28. john says:

    Hi ! I have an idea i’d like to share with you ! Is it possible to develop a third version of Plex Export with the addition of a media player (flash and html5) ? When selecting a movie, you can play directly the media. I’m ready to help for the development of such feature :)

    Many thanks !

    • Luke L says:

      This will work locally but not online at the moment and there is the additional problem of security (anyone can play your content). I’m waiting for Plex to make some changes and then might revisit this idea. Thanks.

  29. john says:

    Well, actually, that’s what i’m looking for, playing the media locally… do you know if it is esay to achieve at the moment ? i suppose it is necessary to embbed a player and specify the file path…

  30. tv says:

    This is great but it never loads in Chrome or IE on Mac or Windows..

  31. Srikanth says:

    Hi,

    Just downloaded plex-export. It was one of the feature I was missing in plex, when compared to mythtv. I love the interface and love the easy way of just one cammand. Hope plex will intergrate this functionality in by default. Like everyone here, would love to open a movie and play it in the web browser.

    Once again thanks a lot for sharing your work with all of us.

    Regards,
    Sri.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>