Jump to content


Photo

Plex Web Export


  • Please log in to reply
577 replies to this topic

#1 Dachande663

Dachande663

    Dedicated Member

  • Members
  • PipPipPip
  • 203 posts
  • Location: Birmingham, UK

Posted 06 October 2010 - 11:36 AM

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.c...ne/plex-export/

Source: https://github.com/D...663/Plex-Export
Download: https://github.com/D...hive/master.zip



#2 henrk

henrk

    Dedicated Member

  • Members
  • PipPipPip
  • 194 posts
  • Location: Sydney, Australia

Posted 07 October 2010 - 12:03 AM

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?

#3 Dachande663

Dachande663

    Dedicated Member

  • Members
  • PipPipPip
  • 203 posts
  • Location: Birmingham, UK

Posted 07 October 2010 - 07:27 AM

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.

#4 MrAcid

MrAcid

    Dedicated Member

  • Members
  • PipPipPip
  • 186 posts
  • Location: Netherlands

Posted 07 October 2010 - 11:14 AM

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".

#5 Dachande663

Dachande663

    Dedicated Member

  • Members
  • PipPipPip
  • 203 posts
  • Location: Birmingham, UK

Posted 07 October 2010 - 02:07 PM

Search is definitely on my todo list, hoping to do some kind of live filtering similar to the new media manager.

#6 Dachande663

Dachande663

    Dedicated Member

  • Members
  • PipPipPip
  • 203 posts
  • Location: Birmingham, UK

Posted 08 October 2010 - 04:47 PM

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.co...663/5062351491/
http://www.flickr.co...663/5062961898/

Edited by Dachande663, 08 October 2010 - 07:36 PM.


#7 jayman978

jayman978

    Plex Dev Team

  • Plexville Red Sox Fan
  • PipPipPipPipPipPip
  • 4559 posts
  • Location: Boston, MA

Posted 08 October 2010 - 06:48 PM

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 :)

#8 Dachande663

Dachande663

    Dedicated Member

  • Members
  • PipPipPip
  • 203 posts
  • Location: Birmingham, UK

Posted 09 October 2010 - 08:23 PM

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.

#9 mkh

mkh

    Dedicated Member

  • Members
  • PipPipPip
  • 397 posts

Posted 10 October 2010 - 12:35 AM

Okay, this is pretty ****** cool.


nuuuf said.

#10 Fressa0815

Fressa0815

    Member

  • Members
  • PipPip
  • 58 posts
  • Location: Hamburg, Germany

Posted 10 October 2010 - 11:31 AM

Great!
Let me pass, I'm a social worker!!!!

#11 xiocc

xiocc

    Newbie

  • Members
  • Pip
  • 7 posts
  • Location: Zurich, Switzerland

Posted 10 October 2010 - 12:14 PM

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!

#12 shiree1

shiree1

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 10 October 2010 - 12:34 PM

awesome! it's beautiful.

i'd like to see recent additions. is this possible?

#13 MrAcid

MrAcid

    Dedicated Member

  • Members
  • PipPipPip
  • 186 posts
  • Location: Netherlands

Posted 10 October 2010 - 02:36 PM

I really like where this is going! :)

#14 Dachande663

Dachande663

    Dedicated Member

  • Members
  • PipPipPip
  • 203 posts
  • Location: Birmingham, UK

Posted 10 October 2010 - 03:01 PM

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

#15 henrk

henrk

    Dedicated Member

  • Members
  • PipPipPip
  • 194 posts
  • Location: Sydney, Australia

Posted 10 October 2010 - 11:32 PM

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

#16 mkh

mkh

    Dedicated Member

  • Members
  • PipPipPip
  • 397 posts

Posted 11 October 2010 - 06:24 AM

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

#17 MrAcid

MrAcid

    Dedicated Member

  • Members
  • PipPipPip
  • 186 posts
  • Location: Netherlands

Posted 11 October 2010 - 07:55 AM

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)? :)

#18 Dachande663

Dachande663

    Dedicated Member

  • Members
  • PipPipPip
  • 203 posts
  • Location: Birmingham, UK

Posted 11 October 2010 - 10:53 AM

@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!

#19 mkh

mkh

    Dedicated Member

  • Members
  • PipPipPip
  • 397 posts

Posted 11 October 2010 - 12:27 PM

@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

#20 Dachande663

Dachande663

    Dedicated Member

  • Members
  • PipPipPip
  • 203 posts
  • Location: Birmingham, UK

Posted 11 October 2010 - 03:29 PM

@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).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users