# Plex Web Export

**URL:** <https://forums.plex.tv/t/plex-web-export/5807>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [October 6, 2010, 11:36am UTC](https://forums.plex.tv/t/plex-web-export/5807 "2010-10-06T11:36:18Z")\
**Posts on this page:** 20\
**Page:** 29

<div class="post-metadata">

**Author:** ![Dachande663](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dachande663/32/403_2.png) [@Dachande663](https://forums.plex.tv/u/Dachande663)\
**Post date:** [March 17, 2014, 4:45pm UTC](https://forums.plex.tv/t/plex-web-export/5807/561 "2014-03-17T16:45:35Z")

</div>

Hi Catello, the export should be able to handle 10K+ items. Paging would not help too much as the webpage has to load in all of the data in one go at the beginning. Can you confirm what browser you are using? Older browsers, especially Internet Explorer, will be much slower to run the code.

---

<div class="post-metadata">

**Author:** ![catello](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/catello/32/3982_2.png) [@catello](https://forums.plex.tv/u/catello)\
**Post date:** [March 17, 2014, 10:33pm UTC](https://forums.plex.tv/t/plex-web-export/5807/562 "2014-03-17T22:33:35Z")

</div>

i tried on:

Intel i5 windows 8.1 firefox 27, IE 11

intel i5 windows XP SP3 - firefox and IE8

macbook pro retina i7 - osx 10.9 firefox

alwayes the same problem of browser hang

i sent you as PM the link of my plex-export

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [March 17, 2014, 10:38pm UTC](https://forums.plex.tv/t/plex-web-export/5807/563 "2014-03-17T22:38:02Z")

</div>

> i tried on:
> 
> Intel i5 windows 8.1 firefox 27, IE 11
> 
> intel i5 windows XP SP3 - firefox and IE8
> 
> macbook pro retina i7 - osx 10.9 firefox
> 
> alwayes the same problem of browser hang
> 
> i sent you as PM the link of my plex-export

What's the OS of the webserver?

If Linux, then it's most likely an issue with the account running the WebServer hasn't got rights to the files from PlexExport

/T

---

<div class="post-metadata">

**Author:** ![catello](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/catello/32/3982_2.png) [@catello](https://forums.plex.tv/u/catello)\
**Post date:** [March 18, 2014, 12:17am UTC](https://forums.plex.tv/t/plex-web-export/5807/564 "2014-03-18T00:17:27Z")

</div>

> What's the OS of the webserver?
> 
> If Linux, then it's most likely an issue with the account running the WebServer hasn't got rights to the files from PlexExport
> 
> /T

isn't a rights problem because when i load exported index.html sometime hangs on loading and sometime hangs when i click on sorting. in safari for iphone for example hang always on page loading

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [March 18, 2014, 12:29am UTC](https://forums.plex.tv/t/plex-web-export/5807/565 "2014-03-18T00:29:16Z")

</div>

> isn't a rights problem because when i load exported index.html sometime hangs on loading and sometime hangs when i click on sorting. in safari for iphone for example hang always on page loading

If you want help, you really need to expose your-self here.

So,,,,OS and Webserver incl. versions please, and logs from those as well!

/T

---

<div class="post-metadata">

**Author:** ![radar](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/radar/32/332_2.png) [@radar](https://forums.plex.tv/u/radar)\
**Post date:** [March 18, 2014, 8:37am UTC](https://forums.plex.tv/t/plex-web-export/5807/566 "2014-03-18T08:37:51Z")

</div>

Any idea how to access it through a reverse proxy (nginx)?

Thanks.

Edit: I'll post some additional details later.

---

<div class="post-metadata">

**Author:** ![catello](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/catello/32/3982_2.png) [@catello](https://forums.plex.tv/u/catello)\
**Post date:** [March 18, 2014, 9:45am UTC](https://forums.plex.tv/t/plex-web-export/5807/567 "2014-03-18T09:45:28Z")

</div>

the problem is also in local without web server.

here my plex export output

[https://dl.dropboxusercontent.com/u/6847714/Plex.rar](https://dl.dropboxusercontent.com/u/6847714/Plex.rar)

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [March 18, 2014, 10:44am UTC](https://forums.plex.tv/t/plex-web-export/5807/568 "2014-03-18T10:44:31Z")

</div>

> the problem is also in local without web server.
> 
> here my plex export output

Confused here....

Where did you get your version of Plex Export?

It's a newer one than the one I got, and A LOT SLOWER than the one I got, but with more options for filtering though

The one I got is [https://github.com/Dachande663/Plex-Export](https://github.com/Dachande663/Plex-Export)

And doesn't use a directory named items, and runs perfectly

/T

---

<div class="post-metadata">

**Author:** ![Dachande663](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dachande663/32/403_2.png) [@Dachande663](https://forums.plex.tv/u/Dachande663)\
**Post date:** [March 18, 2014, 12:49pm UTC](https://forums.plex.tv/t/plex-web-export/5807/569 "2014-03-18T12:49:38Z")

</div>

That's the isotope template from the v2 branch ([https://github.com/Dachande663/Plex-Export/tree/v2](https://github.com/Dachande663/Plex-Export/tree/v2)).

It's experimental and so was never launched and made the default. I'd recommend using the older and safer master version.

---

<div class="post-metadata">

**Author:** ![catello](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/catello/32/3982_2.png) [@catello](https://forums.plex.tv/u/catello)\
**Post date:** [March 19, 2014, 10:20am UTC](https://forums.plex.tv/t/plex-web-export/5807/570 "2014-03-19T10:20:06Z")

</div>

thank now with the old version work great :)  
  
one last thing, to do the export, I must disable on the server the security (with reg key disableRemoteSecurity = 1). it's possible to run the export, without disable the remote security?

thank

---

<div class="post-metadata">

**Author:** ![chiddie](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@chiddie](https://forums.plex.tv/u/chiddie)\
**Post date:** [March 25, 2014, 10:40pm UTC](https://forums.plex.tv/t/plex-web-export/5807/571 "2014-03-25T22:40:21Z")

</div>

Ok guys, sorry for the newbiness, but making this thing work in Windows 8 x64 appears to be a freaking nightmare.

I download the plex-export master file and unzipped it in the Download folder, i ran index.html (on chrome) but it's stuck on loading.

I then opened the readme and discovered that apparently i had to install before this thing called php. The only installer i found was&nbsp;PHP 5.3 (5.3.28) installer on the site&nbsp;[http://windows.php.net/download/](http://windows.php.net/download/). I downloaed it and installed it but when i launched index.html it was stuck on loading again.

I then re-read the readme and discovered maybe i had to launch a command (from where? command prompt i assume?) called "php cli.php" but when i launched it an error appeared saying OCI.dll is missing.

Why is this thing so freaking complicated? Isn't there an installer of plex web report for windows that automatically install whatever it needs to run?

Help, please, i'm stuck. :(

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [March 25, 2014, 10:53pm UTC](https://forums.plex.tv/t/plex-web-export/5807/572 "2014-03-25T22:53:11Z")

</div>

> Why is this thing so freaking complicated?

Because this is not a regular std. MSI thingy, but a multi platform thing, that covers both Mac, Linux and Windows, and is targeted at WebAdministrators.

If you got a webserver, then read [this](https://bugs.php.net/bug.php?id=53142) that states that it's a bug in PHP for the the windows platform, and also shows how to solve it.

If you on the other hand only need a tekst file exported, then look in my signature for Plex2Csv

/T

---

<div class="post-metadata">

**Author:** ![radar](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/radar/32/332_2.png) [@radar](https://forums.plex.tv/u/radar)\
**Post date:** [March 27, 2014, 4:07pm UTC](https://forums.plex.tv/t/plex-web-export/5807/573 "2014-03-27T16:07:45Z")

</div>

Hi,

I was a little bit busy and could not provide additional information about my [request](https://forums.plex.tv/topic/19053-plex-web-export/page-29#entry604373).

So here it is:

I'd like to use nginx as reversy proxy in order to access Plex-Export (export.mydomain.com). Plex-Export is running on a Synology NAS and Nginx on a Macmini running OSX server.

As I'm doing for PlexWatchWeb for instance, I added the following lines to Nginx conf file (192.168.1.123 is the IP of the NAS):

```
server {
        listen       80;
        server_name export.mydomain.com;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location / {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; satisfy any;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy\_pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [http://192.168.1.123/Plex-Export/;](http://192.168.1.123/Plex-Export/;)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp; web;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; index&nbsp; index.html index.htm;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #error\_page&nbsp; 404&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /404.html;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error\_page&nbsp;&nbsp; 500 502 503 504&nbsp; /50x.html;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location = /50x.html {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp; html;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }  
&nbsp;&nbsp;&nbsp; }
```

The result if I access [http://export.mydomain.com](http://export.mydomain.com) is depicted in the attached figure.

If I go to&nbsp;[http://192.168.1.123/Plex-Export/](http://192.168.1.123/Plex-Export/), then everything is fine.

Any idea how I can fix that?

Thanks.

 ![ItTMh.jpg](http://snag.gy/ItTMh.jpg)

---

<div class="post-metadata">

**Author:** ![5degrees](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/5degrees/32/8445_2.png) [@5degrees](https://forums.plex.tv/u/5degrees)\
**Post date:** [April 4, 2014, 11:44am UTC](https://forums.plex.tv/t/plex-web-export/5807/574 "2014-04-04T11:44:32Z")

</div>

I am now running Plex Export on an Ubuntu server. Where it was running fine on a Windows based server, I am now getting errors which I dont have the experience to debug. Can anyone help?

11:35:29 Exporting data for 2 sections containing 711 items  
11:35:29 Error: date(): It is not safe to rely on the system's timezone settings. You are \*required\* to use the date.timezone setting or the date\_default\_timezone\_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. on line 176  
11:35:29 Generating and minifying JSON output, this may take some time...  
PHP Fatal error:&nbsp; Call to undefined function json\_encode() in /var/www/cli.php on line 184

---

<div class="post-metadata">

**Author:** ![Dachande663](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dachande663/32/403_2.png) [@Dachande663](https://forums.plex.tv/u/Dachande663)\
**Post date:** [April 4, 2014, 11:47am UTC](https://forums.plex.tv/t/plex-web-export/5807/575 "2014-04-04T11:47:48Z")

</div>

The first error is because you don't have a default timezone in your php.ini (normally in /etc/php5/cli/php.ini on Ubuntu).

The second error is because you need the JSON package for PHP. Why Ubuntu decided to remove this from the default I don't know.

```
sudo apt-get install php5-json
```

Will fix it for you.

---

<div class="post-metadata">

**Author:** ![Leong](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@Leong](https://forums.plex.tv/u/Leong)\
**Post date:** [April 6, 2014, 11:52am UTC](https://forums.plex.tv/t/plex-web-export/5807/576 "2014-04-06T11:52:05Z")

</div>

Hi,

Just tried this and it is excellent. Unfortunately it can't open in any of my iOS devices. I tried on an Android device and it opens with chrome beautifully. I then installed chrome on iOS with no luck too. Works fine on my osx and win machine. Any ideas, I have 30K library items. I tried others who has less than 10K items opens fine. Any ideas?

Thanks.

---

<div class="post-metadata">

**Author:** ![lj0001](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/lj0001/32/8334_2.png) [@lj0001](https://forums.plex.tv/u/lj0001)\
**Post date:** [April 6, 2014, 6:43pm UTC](https://forums.plex.tv/t/plex-web-export/5807/577 "2014-04-06T18:43:15Z")

</div>

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

Sorry but I've read the first and last few pages and I'm still not understanding what Plex Export does? If it just exports info why were there requests to have a "read/unread" function added?

Can someone give me an example of the use of Plex Export please?

(I came across thie thread when searching for a way to backup my Plex config so that if I had to reinstall or move to a different server I wouldn't lose all the manually changed fields I've edited, like for getting all the Die Hard films in the correct order, not alphabetical).

TIA

---

<div class="post-metadata">

**Author:** ![Mntn\_Bell](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mntn_bell/32/9834_2.png) [@Mntn\_Bell](https://forums.plex.tv/u/Mntn_Bell)\
**Post date:** [April 6, 2014, 7:03pm UTC](https://forums.plex.tv/t/plex-web-export/5807/578 "2014-04-06T19:03:06Z")

</div>

> Hi Bruce,  
>   
> First of all, it looks like PHP is installed and working as the script is executing and can actually show you an error message (otherwise you'd get something along the lines of "could not find application php".  
>   
> As for your problem; are you trying to export the Plex library for the machine you are on or another machine on your network? If it's the machine you're on, make sure that Plex Media Server is running (the little chevron icon in the menubar at the top). If your library is on another computer, then you need to start the script like so:  
>   
> php /Users/Alec/Desktop/plexexport/cli.php -plex-url [http://other-machine-name.local:32400](http://other-machine-name.local:32400)  
>   
> Let me know if this resolves your issue.

OK I am receiving this same error and my Plex Media Server is running, &nbsp;In fact I have made sure I have the web page open and it is displaying my shows, etc. &nbsp;It is on the same machine as the script. &nbsp;I am running on windows 7 so I don't know if you support win7 or not. &nbsp;However I get the exact same searching ... then error the plex library could not be found

CMD Prompt\>&nbsp;

welcome to plex exporter v1

12:52:35 Searching for sections in the Plex library at [http://localhost:32400/](http://localhost:32400/)

12:53:35 Error: The Plex library could not be found at [http://localhost:32400/](http://localhost:32400/)

12:53:35 Error: Could not load section data, aborting

Any help would be appreciated

Randy&nbsp;

---

<div class="post-metadata">

**Author:** ![VikingSven](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@VikingSven](https://forums.plex.tv/u/VikingSven)\
**Post date:** [May 4, 2014, 8:04pm UTC](https://forums.plex.tv/t/plex-web-export/5807/579 "2014-05-04T20:04:59Z")

</div>

Just got this up and running - it's exactly what I was looking for, so thank you!

I'm trying to edit it to show more items horizontally (4 items per row takes up so little space on a 27" monitor!) but can't work out where it loads the number of items to show on each row.

What I've got so far just from playing around with the css: [http://www.svenlowry.co.uk/Plex/index.html](http://www.svenlowry.co.uk/Plex/index.html)

---

<div class="post-metadata">

**Author:** ![luthien](https://avatars.discourse-cdn.com/v4/letter/l/ccd318/32.png) [@luthien](https://forums.plex.tv/u/luthien)\
**Post date:** [May 15, 2014, 5:58pm UTC](https://forums.plex.tv/t/plex-web-export/5807/580 "2014-05-15T17:58:07Z")

</div>

Hi,

somehow i can't get in running. The PHP script works. But when i open the index.html all i got is "Loading Data from Plex" even if i wait several minutes.

this is the end of the terminal log:

```
17:53:51 Analysing media items in section...
17:53:51 Added 102 items from the Serien section
17:53:51 Exporting data for 2 sections containing 7998 items
17:53:51 Error: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. on line 176
17:53:51 Generating and minifying JSON output, this may take some time...
17:53:51 Wrote 6703278 bytes to /Users/user/Downloads/Plex-Export-master/plex-data/data.js
17:53:51 Plex Export completed in 242.54 seconds
```

I run it on Max OSX 10.9.2

[Previous page](https://forums.plex.tv/t/plex-web-export/5807.md?page=28)

[Next page](https://forums.plex.tv/t/plex-web-export/5807.md?page=30)
