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

<div class="post-metadata">

**Author:** ![LiQuID](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/liquid/32/100_2.png) [@LiQuID](https://forums.plex.tv/u/LiQuID)\
**Post date:** [October 21, 2010, 11:28pm UTC](https://forums.plex.tv/t/plex-web-export/5807/81 "2010-10-21T23:28:43Z")

</div>

Great work thanks!

---

<div class="post-metadata">

**Author:** ![touf](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@touf](https://forums.plex.tv/u/touf)\
**Post date:** [October 22, 2010, 10:54am UTC](https://forums.plex.tv/t/plex-web-export/5807/82 "2010-10-22T10:54:35Z")

</div>

please help me  
  
  
  
  
  
i want to know, how does it work.  
  
  
  
i dowload the folder in my mac.  
  
i activate PHP to be sure it work.  
  
  
  
and now what i have to do.  
  
  
  
what exactly i copy in my drop folder?  
  
WHAT I HAVE TO RUN ( clip or index ) for the processiing to get all details of my library   
  
i am lost

---

<div class="post-metadata">

**Author:** ![sandman4sure](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sandman4sure/32/40_2.png) [@sandman4sure](https://forums.plex.tv/u/sandman4sure)\
**Post date:** [October 22, 2010, 11:07am UTC](https://forums.plex.tv/t/plex-web-export/5807/83 "2010-10-22T11:07:44Z")

</div>

See the readme:  
  
  
  
[http://github.com/Dachande663/Plex-Export](http://github.com/Dachande663/Plex-Export)  
  
  
  
_Instructions: 1. You must have PHP installed on your system for this to work (PLEX Export does not have to be run on the system containing Plex Media Server however) 2. In your preferred shell/terminal enter the following command: php 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. Access the index.html file in your web browser and enjoy :)\*

---

<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:** [October 22, 2010, 11:13am UTC](https://forums.plex.tv/t/plex-web-export/5807/84 "2010-10-22T11:13:11Z")

</div>

@touf On you’re computer run the cli file in your shell, for example in Terminal type php /path/to/plexexport/cli.php. You can then open the index.HTML file in your browser to view your library. If you want to put your library on dropbox for others to see add the index.HTML file as well as the assets and plex-data folders.  
  
  
  
Hope that helps make it a bit clearer for you.

---

<div class="post-metadata">

**Author:** ![lordviper](https://avatars.discourse-cdn.com/v4/letter/l/a8b319/32.png) [@lordviper](https://forums.plex.tv/u/lordviper)\
**Post date:** [October 23, 2010, 11:42am UTC](https://forums.plex.tv/t/plex-web-export/5807/85 "2010-10-23T11:42:59Z")

</div>

hi guys excellent work on this!  
  
but im having an issue.  
  
  
  
so this all works perfectly on my local plex mac mini which has the library on it.  
  
but when i copy the produced plexexport folder to another computer or even try to load index.htm remotely it just hands at “Loading data from PLEX…” and spins and spins.  
  
but when i load the exact same file on the mac mini its on, it works fine.  
  
  
  
any ideas on how to fix this?  
  
  
  
  
  
thanks again!

---

<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:** [October 23, 2010, 11:46am UTC](https://forums.plex.tv/t/plex-web-export/5807/86 "2010-10-23T11:46:37Z")

</div>

> [@](#):
>
> hi guys excellent work on this!  
> but im having an issue.  
>   
> so this all works perfectly on my local plex mac mini which has the library on it.  
> but when i copy the produced plexexport folder to another computer or even try to load index.htm remotely it just hands at "Loading data from PLEX..." and spins and spins.  
> but when i load the exact same file on the mac mini its on, it works fine.  
>   
> any ideas on how to fix this?  
>   
>   
> thanks again!

  
  
Hi lordviper, as long as you copy the entire contents of plexexport it should work. If not, the best way to diagnose the issue would be to look in the console and see what errors are being thrown up. If you PM which browser you're using I should be able to help you further.

---

<div class="post-metadata">

**Author:** ![hrcolb0](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hrcolb0/32/380_2.png) [@hrcolb0](https://forums.plex.tv/u/hrcolb0)\
**Post date:** [October 23, 2010, 9:03pm UTC](https://forums.plex.tv/t/plex-web-export/5807/87 "2010-10-23T21:03:42Z")

</div>

If you get an API key and require a particular player extension, could you turn this into a full plex webapp?

---

<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:** [October 23, 2010, 9:06pm UTC](https://forums.plex.tv/t/plex-web-export/5807/88 "2010-10-23T21:06:16Z")

</div>

> [@](#):
>
> If you get an API key and require a particular player extension, could you turn this into a full plex webapp?

  
  
In theory yes, I don't know how the backend is currently set up in plex though to add this as a proper module. Its one of those things, if I had more time id look into it :/

---

<div class="post-metadata">

**Author:** ![lordviper](https://avatars.discourse-cdn.com/v4/letter/l/a8b319/32.png) [@lordviper](https://forums.plex.tv/u/lordviper)\
**Post date:** [October 24, 2010, 4:38pm UTC](https://forums.plex.tv/t/plex-web-export/5807/89 "2010-10-24T16:38:51Z")

</div>

> [@](#):
>
> Hi lordviper, as long as you copy the entire contents of plexexport it should work. If not, the best way to diagnose the issue would be to look in the console and see what errors are being thrown up. If you PM which browser you're using I should be able to help you further.

  
ok so update on the issue.  
it is ONLY present in chrome on the mac.  
but works fine in every other browser?! weird huh?  
  
but as soon as i move the folder to a local location it works fine in chrome, just not remotely.  
  
but the problem isnt visible in any other browser.  
  
thanks again for all the hard work in this.  
  
i havent set up itunes in plex, but would this be able to list my itunes playlists/artists aswell?  
  
  
once again excellent work!

---

<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:** [October 24, 2010, 5:20pm UTC](https://forums.plex.tv/t/plex-web-export/5807/90 "2010-10-24T17:20:20Z")

</div>

> [@](#):
>
> ok so update on the issue.  
> it is ONLY present in chrome on the mac.  
> but works fine in every other browser?! weird huh?  
>   
> but as soon as i move the folder to a local location it works fine in chrome, just not remotely.  
>   
> but the problem isnt visible in any other browser.  
>   
> thanks again for all the hard work in this.  
>   
> i havent set up itunes in plex, but would this be able to list my itunes playlists/artists aswell?  
>   
>   
> once again excellent work!

  
  
Sounds like Chrome is being extra-cautious with the same origin policy. I'll try and replicate it locally but I have a feeling this is one bug I won't be able to fix.  
  
At the moment it doesn't export any music data (mainly because I've only just added my own music library). I am looking into adding support for this but it'll most likey just be an overview of artists.  
  
Just to let others know as well I'm still hunting down a few bugs e.g. file size issue. Uni work has taken priority at the moment though.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [October 25, 2010, 5:43am UTC](https://forums.plex.tv/t/plex-web-export/5807/91 "2010-10-25T05:43:19Z")

</div>

Beautiful work! Any plans to add episode viewing for TV? It would be nice to be able to see which episode you have. Also, watch status?  
  
  
  
All in all - GREAT WORK!

---

<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:** [October 25, 2010, 6:48am UTC](https://forums.plex.tv/t/plex-web-export/5807/92 "2010-10-25T06:48:50Z")

</div>

@dirRtyjoe yes on all counts, one day.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [October 27, 2010, 11:49pm UTC](https://forums.plex.tv/t/plex-web-export/5807/93 "2010-10-27T23:49:25Z")

</div>

What is the best way to have it find new additions to the PLEX library? Just re-run the PHP script or do we have to clear out some folders?  
  
  
  
I re-ran it and it didn’t find anything new until I cleared the information… just curious if I should have to do this.  
  
  
  
also, how is it counting the number of items in the library (shown in the top right)? Does this included individual TV episodes? I’ve been at 1,111 for a while even after adding new episodes…

---

<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:** [October 28, 2010, 7:45am UTC](https://forums.plex.tv/t/plex-web-export/5807/94 "2010-10-28T07:45:38Z")

</div>

@dirRtyjoe: yes, if you re-run the script it will update and write the new data to data.js along with any new thumbnails.  
  
  
  
At the moment it counts movies + tv shows, not episodes though that will change as I now pull that data out.

---

<div class="post-metadata">

**Author:** ![chrisbrummel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chrisbrummel/32/538_2.png) [@chrisbrummel](https://forums.plex.tv/u/chrisbrummel)\
**Post date:** [October 28, 2010, 5:47pm UTC](https://forums.plex.tv/t/plex-web-export/5807/95 "2010-10-28T17:47:24Z")

</div>

I’ve skimmed this forum to see if there is any plan to integrate this into Plex rather that it being created by exporting it, but didn’t notice anything.  
  
  
  
Are there plans to integrate this or has anyone from the Plex team brought up this possibility? It would be great to implement this in a similar way to how Transmit handles it’s web client.  
  
  
  
Looks great!  
  
  
  
Thanks,  
  
Chris

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [October 28, 2010, 9:56pm UTC](https://forums.plex.tv/t/plex-web-export/5807/96 "2010-10-28T21:56:33Z")

</div>

Plex has something similar built in, well… the Media Manager.  
  
  
  
[http://ip.of.plex.machine:32400/manage](http://ip.of.plex.machine:32400/manage)

---

<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:** [October 29, 2010, 7:29am UTC](https://forums.plex.tv/t/plex-web-export/5807/97 "2010-10-29T07:29:18Z")

</div>

> [@](#):
>
> Plex has something similar built in, well... the Media Manager.  
>   
> http://ip.of.plex.machine:32400/manage

  
  
Woah, I didn't even realise Plex had the Media Manager set up like that!

---

<div class="post-metadata">

**Author:** ![t\_heinrich](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@t\_heinrich](https://forums.plex.tv/u/t_heinrich)\
**Post date:** [October 29, 2010, 8:30am UTC](https://forums.plex.tv/t/plex-web-export/5807/98 "2010-10-29T08:30:28Z")

</div>

Wow, this looks awesome!!! You did a really great job!!!  
  
  
  
I’ve got two questions:

- Is it possible to start playing the movies from the webpage or could this be a feature request?  
  
  
  
I’m using [iRule](http://www.iruleathome.com/) to control my AV.  
  
In iRule you can include embedded webpages.  
  
  
- Is it possible to create a more simple/smaller webinterface for mobile devices (e.g. iPhone)?  
  
  
  
Greetz from Germany!!  
  
  
  
Thomas

---

<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:** [October 29, 2010, 8:52am UTC](https://forums.plex.tv/t/plex-web-export/5807/99 "2010-10-29T08:52:08Z")

</div>

> [@](#):
>
> Wow, this looks awesome!!! You did a really great job!!!  
>   
> I've got two questions:  
>   
> - Is it possible to start playing the movies from the webpage or could this be a feature request?  
>   
> I'm using [iRule](http://www.iruleathome.com/) to control my AV.  
> In iRule you can include embedded webpages.  
>   
> - Is it possible to create a more simple/smaller webinterface for mobile devices (e.g. iPhone)?  
>   
> Greetz from Germany!!  
>   
> Thomas

  
  
The API allows for starting a movie etc, but it's the security/network implications that are what's stopping me at the moment. If you put the page up on a publicly accessible domain, anyone could control your media centre. I did look at using a password prompt but I ideally want to keep the final output as HTML/JS only so it will run on Dropbox's for example. If there's enough call for this I might put a flag in the exporter to let people enable this as they choose.  
  
A cutdown version is a possibility. The HTML at the moment is fairly lean so I could do an iPhone version without needing to change much.  
  
As with everything though it's time that's most costly. I've started University again (final year) and am just swamped (I'm typing this in a lecture now :/). I'm hoping to get a bit of time in this weekend to squash some bugs so I'll let everyone know more as I get stuff done.

---

<div class="post-metadata">

**Author:** ![PlexLars](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/plexlars/32/1004_2.png) [@PlexLars](https://forums.plex.tv/u/PlexLars)\
**Post date:** [October 29, 2010, 8:55am UTC](https://forums.plex.tv/t/plex-web-export/5807/100 "2010-10-29T08:55:00Z")

</div>

> [@](#):
>
> Posted Yesterday, 10:56 PM  
>   
> Plex has something similar built in, well… the Media Manager.  
>   
>   
>   
> [http://ip.of.plex.machine:32400/manage](http://ip.of.plex.machine:32400/manage)

  
  
Whooshh.....that saves me from alot of Remote work. Funny the devs don´t tell us about nice fetures like this.

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

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