FYI - Found the problem. It appears that the oputput simply won’t work locally, and must be loaded from a web server. This is the specific error that pops up in chrome debug:
XMLHttpRequest cannot load file:///C:/plexport/plex-data/data.js. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
Uploaded the output to my web server and it works fine.
Is this still supported? When I try to run on my 2012 Windows box, I get the following:
G:\export\Plex-Export-master>php cli.php
14:48:01 Welcome to the Plex Exporter v1
14:48:01 Searching for sections in the Plex library at http://localhost:32400/
14:48:02 Error: The Plex library could not be found at http://localhost:32400/
14:48:02 Error: Could not load section data, aborting
Obviously not. It is quite frustrating.
Hence I have started to code my own solution in PHP based on the PLEX http API. It is in very alpha stage and far away from a public beta release.
First screenshots here:
@mlocher75 said:
Obviously not. It is quite frustrating.
Hence I have started to code my own solution in PHP based on the PLEX http API. It is in very alpha stage and far away from a public beta release.
First screenshots here:
Well, it works quite well for movie and tv-show libraries but the code is a pretty mess at the moment. It is currently more like a proof of concept than a proper written piece of code.
Hence I am still cleaning up the code and make the output completely template based. I also still need to include some sanity checks to prevent the script from being abused to manipulate the PLEX server with tampered http requests. I also want to make everything as flexible as possible to include also picture and music libraries in the final release.
I hope to be able to release a beta version still this month.
Some pre-release information for the first beta:
Name:
PHP library presenter for PLEX
Description:
Provides a PHP frontend to simply present PLEX libraries on the web without the possibility to play or download the library items.
Currently only supports movie and tv-show libraries.
Features:
directly accesses a PLEX server via http API
slider view for the front page showing recently added library items (bxslider jquery plug-in)
2 different views for the libraries:
thumbnail view
list view (dataTables jquery plug-in)
ajax pop-up for the detail view of a library item
configurable with json based config files, e.g.:
exclude libraries from being shown
amount of information to be shown for each view
template and css based and hence themeable
default template/theme based on bootstrap 3
posters and thumbnails are served via the PHP script to prevent the PLEX token to be disclosed in the generated html code
Requirements:
a webserver with PHP
a running PLEX server
To do for final release:
support picture and music libraries
admin section to change the configuration
support additional languages
Possible features for future releases:
download the library list in different file formats
I know this might be an old thread, I have this working to generate an export, but when I drag and drop the index.html page it just says “loading data from Plex” forever and never actually loads anything.
No errors running the script, but I’ve tried Chrome and Safari, and neither actually get past just saying “loading data from Plex” on that index.html page.
Anyone got any advice as to why that doesn’t seem to actually pull in any content?
Hi Folks, I want to create these tutorial for this dead project. I hope one day it can be alive again. First, I use PWE (Plex Web Export) version 1. I spent 3-4 hours for using v2 but I couldn’t achieve then I read this topic, v2 is not working with latest PLEX Server. For this reason you can use v1.
First I’ll show you a trick. Instead of using your own host you can use any Free Hosting Services. You have to map your FTP as a drive on your PC (Plex Media Server). I use NetDrive2 for this job. Because it gives me more features but you don’t need to use NetDrive. You can map your free hosting service’s FTP. It is built-in Windows Feature. In my case:
In my case, I added my web server as Drive V:
I opened notepad and I paste these text to it and save as PWE.bat
I have to second mkaand’s tutorial - I struggled then followed him and have it running now and its terrific.
Just has to add my token and amend his bat file to suit my setup.
Guys I only have one issue you java people might help with - by default I want “by recently added” as desc (thus the newest is at the top) can I do this or can you advise?