Thanks guys, works great. Now just trying to figure out how to use my SynologyDS209’s personal website functionality to enable folks to see it from outside my network…really cool Dachande
EDIT: figured out how to have Synology NAS host website and enable people outside network to view it. If anyone needs directions PM me.
Great work Dachande663!
I am in the process of setting up my first web server (thinking about going with 10.6 Server on a Mac Pro) and was wondering if you had any tips/advice on automating the process of running your script and then uploading the resulting files to my web server (this would need to happen daily as my library changes about that frequently)? (BTW, the PMS and web server won’t be on the same machine or even on the same network)
Also, I like the meta data listed when you click on one of the media titles, but would it be possible to incorporate some of the graphics that PMS uses (i.e. the H.264 or 720P icons)?
Hi,
I personally use rsync to upload the data:
cd /Volumes/Plex/PlexExport/ ; php cli.php ; rsync -az plex-data/* ::plexdata ; exit
You need to configure rsyncd on the server of course, but with that, you only send the deltas files to the server.
Mickey,
is this a terminal command? again, i apologize that i'm not very savvy, but do you use Automator to run this if so?
Yes, it is a terminal command, and I wrapped it up using Platypus (http://www.sveinbjorn.org/platypus) to produce an application.
terrific, thanks.
You are welcome!
BTW, I do not know the kind of server you use, but on a OS X Leopard, it is enough to edit /etc/rsyncd.conf to add lines like (assuming assets/, index.html and plex-data/ from the Plex Export directory are located at /Library/WebServer/Documents/plex/ ):
[plexdata]
path = /Library/WebServer/Documents/plex/plex-data
comment = Plex Data from PlexExport
read only = false
uid =
gid = admin
well i’m not using a server per se…Plex library resides on my Mac Mini, and the web server lives on my Synology NAS which is where i would like to copy the contents of the PlexExport folder…and considering i had no idea was rsync was prior to your post, i’m going to have to figure it out
So what i’d like to do is
- have PlexExport run periodically then
- have the contents of it copied over to my NAS
Maybe automator is the way to go?
Yse you may do an automator app that first executes the cli.php then transfers the contents of the PlexExport folder to your NAS (which has to be mounted as a volume on your Mac Mini I suppose, or you may transfer via ftp. - a shell script command put as an app with platypus and called by the automator script will do the trick)). The thing about rsync is that it only copies what has changed. But in a local LAN, it does not matter.
I'm running Snow Leopard and don't seem to have /etc/rsyncd.conf. I tried installing rsync via [Bombich's directions](http://www.bombich.com/rsync.html) but that didn't seem to help. Any ideas? TIA!
You need to create the file I think. rsyncd is already installed on Snow Leopard… It will activate when a rsync client wants to connect to it, but you need to have the rsyncd.conf file configured on the server.
I use this script:
<br />
mkdir /Volumes/web<br />
mount -t afp afp://User@DiskStation/web /Volumes/web<br />
php /Volumes/web/plexlib/cli.php<br />
umount /Volumes/web
in cli.php I edited the path variable to /Volumes/web and voila, everytime I want to update I start this script. A pity I didn't find a way to close the terminal window correctly (only one to kill terminal.app completly).
hello, my result not work:
Macmini:plexexport macmini$ php cli.php
00:09:49 Welcome to the Plex Exporter v1
00:09:49 Searching for sections in the Plex library at http://localhost:32400/
00:09:49 Error: The Plex library could not be found at http://localhost:32400/
00:09:49 Error: Could not load section data, aborting
Macmini:plexexport macmini$
help
thanks your support
P.S
work with plex 0.8.5
@francesco Plex Export only works with Plex 9.
thanks for your fast ANSWER,and for plex 0.8.5 solution?? :rolleyes:
I think someone on the forums had made an exporter for the old Plex, a search should bring it up.
thanks and good night
By adding
#!/usr/bin/env php
as the first line in cli.php you can just drag cli.php to terminal and hit enter…
no need to use “php cli.php”
Can you give us an idea for when the update, adding the possibility to show recently added media, is coming?
Also, the visual indication of the presence of an external subtitle would be awesome! (I made some quick and dirty change for my own purpose to the current version. I attach the 2 files I changed. Remember: it is quick and dirty 