Plex Web Export

Hi 5stringdeath, can you try viewing the output of the JavaScript Console in Chrome (it can be accessed in View > Developer > JavaScript Console (you might need to enable Developer tools to see it)). It will show any errors it experienced while loading. Thanks.


element.style {<br />
}<br />
Matched CSS Rules<br />
body {<br />
font-family: "Arial","Helvetica",sans-serif;<br />
font-size: 12px;<br />
color: <br />
#272B2D;<br />
background: <br />
#9A9A9A url(../images/background.jpg);<br />
}<br />
* {<br />
margin: 0;<br />
padding: 0;<br />
border: 0;<br />
list-style: none;<br />
font-weight: normal;<br />
}<br />
user agent stylesheetbody {<br />
display: block;<br />
margin: 8px;<br />
}<br />
Inherited from html<br />
* {<br />
list-style: none;<br />
font-weight: normal;<br />
}<br />
Metrics<br />
Properties<br />
DOM Breakpoints<br />
Event Listeners<br />
XMLHttpRequest cannot load file://localhost/Users/greg/Desktop/Plex-Export/plex-data/data.js. Origin null is not allowed by Access-Control-Allow-Origin.<br />
Uncaught ReferenceError: raw_plex_data is not defined plex.js:525<br />


It seems Chrome is failing to load the file containing all of your exported Plex data for some reason.



Can you provide the URL of the Plex page i.e. the address of the main Plex Export page and also check to make sure there is a file called data.js in the export (and that it begins var raw_plex_data = …).



Not sure what you're asking - the index/export page is local on my machine. Do you want me to make it available to you? If so I'll PM you

There is a data.js file .. Here is the first line:


var raw_plex_data = {"status":"success","version":1,"last_generated":

Well that’s weird, I moved it onto Dropbox and it works fine. Still doesnt work if the directory is just local to my machine (ie, a folder sitting on the desktop)



But I mean the dropbox folder is just a folder on my computer too … huh strange.



Well more specifically:



On the desktop or in the Dropbox folder, if I right-click “open with chrome (default)” I get the empty library like my screenshot. Doing “open with safari” (or firefox) the library loads fine



On dropbox if I put it in the public folder and do “copy public link” and paste that into Chrome, it works fine.

It sounds like Chrome’s security settings are kicking in; by default they limit what files JavaScript can access on the local machine, just so a piece of JS can’t read your private files etc. The downsides of a web-based app :frowning:



Ah yea well that makes sense and is a good thing :D

Thanks for the help

The new web interface Plex Web Interface from Jeff Remy uses the same basic setup from Plex Export, but seems to have mastered dynamic image loading. Might be a good opportunity for some collaboration.

My apologies as I’m a complete newbie to this forum and not particularly tech-savvy…



I’ve been using Plex for a short while (we’ve had it for ages but I hadn’t been using it extensively until this past week!), and I’m keen to export a list of Movies I’ve saved on my server from my DVDs. I downloaded the Plex Export zip file (from the OP) but am thoroughly clueless as to what to do next. I’ve searched the wiki/these forums/googled online but am still clueless. Can anyone explain to me as a complete novice how I can export an document (I guess an html file as I think this is what I would need for poster art images to appear, right).



Thanks in advance for you help. I’m so impressed by the time and dedication you guys have to further enhancing what is already a great tool!

Thank you!!!

Hi JeninHK, Plex Export has to be run from the terminal at the moment as it doesn’t have a nice GUI. Open Terminal (assuming you’re on Mac OS X) and type:



cd ~/Downloads/plex-export



You might need to change the last bit depending on what folder Plex Export is in. Next, type:



php cli.php



And that will start the exporter. A few seconds/minutes longer (depending on your library) size and you’ll have a folder with HTML and images ready to share. Let me know if you need any more help.



Wow, thanks so much for such a quick reply. That helped a lot! I had to rename downloaded folder to plex-export (as originally unzipping the file name it "Dachande663-Plex-Export-9ed857b" or something...) but it worked, so thank you!

Is there any way to specify the Library Section it pulls from (I only want to share one of them)? Or am I getting out of my depth/being cheeky, now? ;-) And can I save that exported file easily to Dropbox? (I saved a file on Dropbox for others to view, but it shows all my libraries and the url seems to point back to my local drive, which if I share I'm guessing other won't be able to access...

Dadanche, will it be possible to integrate Music sections ? What is the current status of your development, are you still working on this, because i think that it would be awesome to have it integrated to myPlex, with the addition on music sections and movie trailers, but without the streaming of course…



Thanks

Hi JeninHK, you can specify the sections to export using the “–sections” parameter e.g. php cli.php --sections=“Movies”. As for Dropbox, several users already do this, all you need to do is copy the entire output folder (including all the images etc) to your Dropbox.

Hi hb2011, Plex Export currently doesn’t support Music sections. I did start work on a 2nd version (available here: GitHub - Dachande663/Plex-Export at v2) but never got past the initial alpha stages. There are a few other projects (some using Plex Export as a base) that have integrated myPlex support, might be worth looking through the Plex forums for them. Thanks :slight_smile:



Thanks Dachande663. I've copied the entire folder, as suggested, and the index.html file to DropBox but still can't see how the film list and metadata can be viewed publicly. It doesn't appear to work when I try to access the DropBox files from an alternative device (e.g. iPad, other Mac, iPhone etc). I tried the link to the index.html file is that enough? Where am I going wrong?

Here's the link to the DropBox file.
https://www.dropbox.com/s/4l212k24hzn2jmu/index.html
Obviously I think this is an issue re me using/copying the right files as opposed to a DropBox issue.

(BTW when I saved a webarchive version from my local MacBook, when I tried from another Mac it pulled data from the server on the iMac...https://www.dropbox.com/s/8dhjmp87de0hq9l/Plex%20Export.webarchive)

Thanks again,
Jen

Hi JeninHK, Dropbox should allow someone to view the HTML. I’m not sure why it’s showing the raw source. Hopefully someone on this thread who has previously used Dropbox can shed some light?




Hi,

I'm using dropbox and all is all right. But dropbox only autorise html content in public folder

For exemple : /..../public/plexexport/
Will do the job

Thanks botho. So what exported files/folders do you copy to DropBox and what html file do you open within DropBox to view your movie list? Even though I've copied the Plex-Export files to my Public DropBox folder, the html, when opened, still shows text only (see link) https://dl-web.dropbox.com/get/Public/Plex-export/index.html?w=e13a34b3

Only need to copy index.html and borh plex-data and assets folders.

Check your dropbox link because it seems wrong

I’ve copied just what you’ve mentioned (actually this is also what I had before, just thought I’d start afresh), and copied the DropBox “Copy Public Link” option on the index.html file and this is the link I get: http://dl.dropbox.com/u/43550478/index.html



The same thing happens. When I select the link on another Mac (my iMac) it displays what it can see via its own Plex Server. When I use from an iPhone/iPad/Other computer, it shows default text (e.g. Library, Sort, Genres) but not any of the movies nor their metadata.



Hope someone has an idea what I’m doing wrong (as I’m sure it’s not DropBox nor the wonderful Plex Exporter! :wink: