# 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:** 30

<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 15, 2014, 9:11pm UTC](https://forums.plex.tv/t/plex-web-export/5807/581 "2014-05-15T21:11:47Z")

</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

Sounds like you're not running it on a machine with a web server running - you can't just open the HTML page and have it work, it needs a web server to process the scripts and load the data

---

<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 24, 2014, 10:07pm UTC](https://forums.plex.tv/t/plex-web-export/5807/582 "2014-05-24T22:07:49Z")

</div>

ah ok. i just remembered there was an export tool (around the time when plex server and client was a single program) that build a html file and folder structure that could be accessed without the need of a web server. I thought this was the one.

---

<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:** [May 24, 2014, 10:30pm UTC](https://forums.plex.tv/t/plex-web-export/5807/583 "2014-05-24T22:30:43Z")

</div>

> ah ok. i just remembered there was an export tool (around the time when plex server and client was a single program) that build a html file and folder structure that could be accessed without the need of a web server. I thought this was the one.

As an alternative, also check my signature for Plex2CSV

/T

---

<div class="post-metadata">

**Author:** ![yusuf143](https://avatars.discourse-cdn.com/v4/letter/y/9dc877/32.png) [@yusuf143](https://forums.plex.tv/u/yusuf143)\
**Post date:** [May 30, 2014, 2:53pm UTC](https://forums.plex.tv/t/plex-web-export/5807/584 "2014-05-30T14:53:48Z")

</div>

In your preferred shell/terminal enter the following command:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php cli.php&nbsp;

I don't understand. Brief explanation please what shell/terminal do I enter this command?

---

<div class="post-metadata">

**Author:** ![Ismelda](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ismelda/32/4934_2.png) [@Ismelda](https://forums.plex.tv/u/Ismelda)\
**Post date:** [May 30, 2014, 4:10pm UTC](https://forums.plex.tv/t/plex-web-export/5807/585 "2014-05-30T16:10:18Z")

</div>

> In your preferred shell/terminal enter the following command:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;php cli.php&nbsp;  
> I don't understand. Brief explanation please what shell/terminal do I enter this command?

You need to install a php program like [wamp](http://www.wampserver.com/en/) for instance and then after having your php emulator activated run the command given though you have to put the correct path and so on. I agree that this explanation was less than user friendly.

> Anyone can tell me how to excute that cli.php file?  
>   
> I have it placed on a php server. I am under windows 7 and I just don't understand what "In your preferred shell/terminal" means. I tried the cmd in windows and it doesn't know the "php" command. So where do you launch that "php cli.php -plex-url=[http://other-machine.local:32400](http://other-machine.local:32400)" command from?  
>   
> Also I suppose you need one folder per server right. I mean I have a Plex Server for my movies, another for my TV shows so I need to set 2 lists right?

Now you need to know how to use a program php server though not complicated for the purpose of PlexExport, it is still not so simple if you never heard of one...  
  
If on the other hand you have a NAS and have your PMS installed there is is much simpler as you only have to use:

```
http://YourNasIPAdress/Plex-Export-master/cli.php
```

to make it work from your browser. (if you added a folder named Plex-Export-master on your NAS with the program in it).

---

<div class="post-metadata">

**Author:** ![constack86](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@constack86](https://forums.plex.tv/u/constack86)\
**Post date:** [August 7, 2014, 9:16am UTC](https://forums.plex.tv/t/plex-web-export/5807/586 "2014-08-07T09:16:24Z")

</div>

Is it possible to export my 2 plex servers into a single exported page?

I'd like to see the combination of both my local machines.... rather than using 2 different addresses with half my content on each..

thanks in advance......

---

<div class="post-metadata">

**Author:** ![Ismelda](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ismelda/32/4934_2.png) [@Ismelda](https://forums.plex.tv/u/Ismelda)\
**Post date:** [August 7, 2014, 10:22am UTC](https://forums.plex.tv/t/plex-web-export/5807/587 "2014-08-07T10:22:41Z")

</div>

Nope it isn't. At least not in the current state of the program.

---

<div class="post-metadata">

**Author:** ![CharlieM78](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@CharlieM78](https://forums.plex.tv/u/CharlieM78)\
**Post date:** [August 13, 2014, 11:09pm UTC](https://forums.plex.tv/t/plex-web-export/5807/588 "2014-08-13T23:09:49Z")

</div>

is there a way to do this on a mac?

---

<div class="post-metadata">

**Author:** ![CharlieM78](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@CharlieM78](https://forums.plex.tv/u/CharlieM78)\
**Post date:** [August 13, 2014, 11:15pm UTC](https://forums.plex.tv/t/plex-web-export/5807/589 "2014-08-13T23:15:56Z")

</div>

Ive recently lost all my movie files I'm hoping i can generate a list of what i had using pled and i can start trying to recover my collection. any help would be great.

---

<div class="post-metadata">

**Author:** ![alias\_rex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/alias_rex/32/887_2.png) [@alias\_rex](https://forums.plex.tv/u/alias_rex)\
**Post date:** [August 14, 2014, 12:15am UTC](https://forums.plex.tv/t/plex-web-export/5807/590 "2014-08-14T00:15:24Z")

</div>

> is there a way to do this on a mac?

  
Instructions, taken from the PleExport Readme file:  
  
1. Download and unzip PlexExport. Put the folder "plexexport" wherever you want it. I have mine in my user folder.  
  
2. Open the terminal app and enter the following command:  
 php cli.php  
  
Note that you have to specify the direct path to the cli.php file, which is inside the plexexport folder. The easiest way to do this is to type "php" (without the quotes) in the Terminal, hit the space bar once, and then drag the cli.php file into the Terminal window  
 (e.g., php /Users/charlie/plexexport/cli.php)  
  
If Plex Media Server is running on a different machine, specify it's URL with the -plex-url parameter, e.g.   
php cli.php -plex-url=[http://other-machine.local:32400](http://other-machine.local:32400)  
  
3. Upon completion your plex-data directory will now contain a .js file and any related thumbnails. Open the index.html file in your web browser and enjoy :)

---

<div class="post-metadata">

**Author:** ![CharlieM78](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@CharlieM78](https://forums.plex.tv/u/CharlieM78)\
**Post date:** [August 14, 2014, 12:25am UTC](https://forums.plex.tv/t/plex-web-export/5807/591 "2014-08-14T00:25:35Z")

</div>

Um ok that’s a little confusing. Where do I get this plex export?

---

<div class="post-metadata">

**Author:** ![alias\_rex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/alias_rex/32/887_2.png) [@alias\_rex](https://forums.plex.tv/u/alias_rex)\
**Post date:** [August 14, 2014, 12:43am UTC](https://forums.plex.tv/t/plex-web-export/5807/592 "2014-08-14T00:43:26Z")

</div>

> Um ok that's a little confusing. Where do I get this plex export?

  
The first post in this forum thread.

---

<div class="post-metadata">

**Author:** ![CharlieM78](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@CharlieM78](https://forums.plex.tv/u/CharlieM78)\
**Post date:** [August 14, 2014, 1:11am UTC](https://forums.plex.tv/t/plex-web-export/5807/593 "2014-08-14T01:11:32Z")

</div>

Oh I was under the impression that link was for windows not Mac

---

<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:** [August 14, 2014, 6:23am UTC](https://forums.plex.tv/t/plex-web-export/5807/594 "2014-08-14T06:23:20Z")

</div>

> Ive recently lost all my movie files I'm hoping i can generate a list of what i had using pled and i can start trying to recover my collection. any help would be great.

Check my signature for Plex2CSV.

That will generate a CSV file, which might be better for you.

/T

---

<div class="post-metadata">

**Author:** ![Zoiks](https://avatars.discourse-cdn.com/v4/letter/z/85f322/32.png) [@Zoiks](https://forums.plex.tv/u/Zoiks)\
**Post date:** [August 15, 2014, 6:28pm UTC](https://forums.plex.tv/t/plex-web-export/5807/595 "2014-08-15T18:28:28Z")

</div>

I am with&nbsp;[CharlieM78](https://forums.plex.tv/user/245686-charliem78/). I have two Drobos hooked up to my plex system. One of the Drobos went down and the data is irretrievable (Data protection my butt!).

I am looking for a way to have plex tell me what Movies and TV shows (episodes) were saved on the dead drobo, but not the other one.

Is this possible?

Thanks

---

<div class="post-metadata">

**Author:** ![Ismelda](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ismelda/32/4934_2.png) [@Ismelda](https://forums.plex.tv/u/Ismelda)\
**Post date:** [August 15, 2014, 7:47pm UTC](https://forums.plex.tv/t/plex-web-export/5807/596 "2014-08-15T19:47:04Z")

</div>

> I am with&nbsp;[CharlieM78](https://forums.plex.tv/user/245686-charliem78/). I have two Drobos hooked up to my plex system. One of the Drobos went down and the data is irretrievable (Data protection my butt!).
> 
> I am looking for a way to have plex tell me what Movies and TV shows (episodes) were saved on the dead drobo, but not the other one.
> 
> Is this possible?
> 
> Thanks

It all depends on your setting really. If you have all the series showing in one library while calling on your 2 drobos then you can only get the list of what is currently in your still alive drobos and compare to what Plex is showing before doing any refresh of you library of course.

If on the other hand each drobos has its own library then it should be easy to know exactly what you are missing. But you asking makes me think it isn't.

Alternatively you can list your current stuff in Plex with the program proposed by dane22 then do a refresh and do another listing to compare the 2.

---

<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:** [August 15, 2014, 7:56pm UTC](https://forums.plex.tv/t/plex-web-export/5807/597 "2014-08-15T19:56:25Z")

</div>

Yes it's possible with my Plex2CSV tool, where you also can export the filepath of the individual medias into a CSV file.

After the CSV file has been created, simply select the file collume, and sort on that

/T

---

<div class="post-metadata">

**Author:** ![Zoiks](https://avatars.discourse-cdn.com/v4/letter/z/85f322/32.png) [@Zoiks](https://forums.plex.tv/u/Zoiks)\
**Post date:** [August 15, 2014, 9:41pm UTC](https://forums.plex.tv/t/plex-web-export/5807/598 "2014-08-15T21:41:54Z")

</div>

Thanks folks.

Dane22, I am trying your Plex2csv with both Plex and Plex Home Theatre.

I have installed the plex2csv.bundle file to my&nbsp;~/Library/Application Support/Plex Media Server/Plug-Ins&nbsp;folder.

I configured the plugin to use the folder ~/Desktop/plexstuff as my 'path to export media to' from Plex Media Server.

With Plex, Plex2CSV does not appear under channels at all.

With Plex Home Theatre, Plex2csv appears, but when I select the channel, nothing happens.

Please help.

---

<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:** [August 15, 2014, 10:05pm UTC](https://forums.plex.tv/t/plex-web-export/5807/599 "2014-08-15T22:05:20Z")

</div>

> Thanks folks.
> 
> Dane22, I am trying your Plex2csv with both Plex and Plex Home Theatre.
> 
> I have installed the plex2csv.bundle file to my&nbsp;~/Library/Application Support/Plex Media Server/Plug-Ins&nbsp;folder.
> 
> I configured the plugin to use the folder ~/Desktop/plexstuff as my 'path to export media to' from Plex Media Server.
> 
> With Plex, Plex2CSV does not appear under channels at all.
> 
> With Plex Home Theatre, Plex2csv appears, but when I select the channel, nothing happens.
> 
> Please help.

Don't wanna be accused for hijacking a thread here, even though the evidence is kinda obvious :rolleyes:&nbsp;

Please go here and repost:

[https://forums.plex.tv/topic/103115-rel-plex2csv/?p=607323](https://forums.plex.tv/topic/103115-rel-plex2csv/?p=607323)

And when doing so, also tell me what OS you are running

/T

---

<div class="post-metadata">

**Author:** ![Zoiks](https://avatars.discourse-cdn.com/v4/letter/z/85f322/32.png) [@Zoiks](https://forums.plex.tv/u/Zoiks)\
**Post date:** [August 15, 2014, 11:47pm UTC](https://forums.plex.tv/t/plex-web-export/5807/600 "2014-08-15T23:47:56Z")

</div>

Sorry, under normal circumstances I don't mind doing this kind of thing (helping debug).

I have been trying to get my freakin' Drobo working going back and forth with their tech support for more than 3 weeks (during my vacation!). I am in no mood to start troubleshooting Plex2csv if it does not work off the bat.

I am running OSX 10.9.4.

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

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