Plex Web Export

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.

Your call, but know for a fact, that it works on multiple platforms, yours included!

/T

Just an FYI if anyone’s wondering my drobo is wonderful and the tech support was A1 they replaced my drobo well past warranty even though there was nothing wrong with it I just lost faith in the unit. I had 2 hard drives fail in 5 min which was the cause of my data loss. Even after cloning the bad drive I still failed to get my data back so am slowly rebuilding my movie collection. Don’t buy your hard drives in batches from the same store lol. I got some bad ones. My other drobo is the 5 bay and it’s great.



Sent from my iPhone using Tapatalk

I have accounts on my Plex server to prevent the kids from seeing anything on the server..

So because of this I have enabled Require authentication on local networks

Is there any way to insert a user and password when running this script?

Or is the only way to disable this and enable it again after its done?

That would prohibit me from having it running automatically.

Best regards

Casperse

Hi All

I installed PHP and configured read/write access and fired up the first version of Plex Web Export.

And it worked 100%, but the opening of the indexhtml and loading was slow (Some time unresponsive) but it works!  :)

I then tried the new version 2, and it processed the first 2 libraries and then stopped.

I noticed that it did not write to the export folder, while processing is this like it should be?

Does it first do a entire scan and then write to export afterwards?

The read write is ok and works for the old version.

This could be a ■■■ thing..... :unsure:

Thanks for this great export tool  :D

I think i got it to work, but this is real real slow. Now it is scanning my library.

How long does it take in your librarys?

When I was using wamp + Windows to scan my libraries it was taking ages (more than 1 hour) and most of the cover were not correctly imported. Since then I just put PlexExport on the NAS the PMS is on and launch the cli.php file from there as the NAS support PHP and it goes quite fast (less than 10mn to regenerate from scrach my movies library for instance and less than 3mn for my animes) considering.

It runs on my "server" it scans since about 4 hours :)

But i think in about one hour it's done

EDIT:

Now it's finished.

But what next?

When i open the index.html it's all empty.

In the folder "plex-data" there are many covers and a data.js

EDIT2:

Ok, all working :D

Do I have to have a web server running to be able to see the results of PlexExport? I mean after I run PlexExport from the command line and then open index.html I don't see anything. Though I do see the files generated in plex-data including the data.js file with my content.

How do I get this to work?

Thanks,

Brian

First, it work fine for me. Fast and without any Problems.

But i'm wishing another export field. Is there a way to export the Path of the assets from the plexserver?

With this informations i could easily rename bad named Files on the server.

Thanks,

Trint

Hi, I'm very new at this (PlexExport), I've downloaded the PlexExport from the link of the 1st post in this thread (in terminal window it tells me: "Welcome to the Plex Exporter v1").

The PMS is on my iMac (192.168.1.xx)

I've enabled the Web Server on my QNAP NAS TS469L and created a virtual host: http://PlexExport.dyndns-at-home.com.

I've copied the folder "Plex-Export-master" on the root of the previous web site (http://PlexExport.dyndns-at-home.com).

I run the command: php cli.php -plex url=http://192.168.1.xx.local:32400 and it creates all the thumbnails and data.js.

Now if I try to access to the web site http://PlexExport.dyndns-at-home.com I receive the following output:

  1. from my iMac everything is GOOD and I can navigate and look at the Plex items in my library;
  2. from external PC both with IE (9) and Chrome (37.0.2062.103 m) I receive the page with Loading...

What am I doing wrong ? Should I enable something different (JavaScript, php, web stuff) on my NAS ?

I think my web server is working well, at least for html base purposes: http://plexexport.dyndns-at-home.com/html_examples/

I need some help from you guys.... :unsure:

Hi, now my PlexExport is running well, I've a question: is it possibile to exclude a specific library to be analyzed (and so visible) by PlexExport ?

 

If yes how this could be achieved ?

As far I know it isn't. You would need to have a second PMS installed and put the library you do not want to export there. For your regular clients all the libraries will show properly. This is why I have 3 PlexExport. Each use a different PMS.

When can we expect updates for this? I really need some more functionality like pagination (for very big collections - takes a while to load 1,3 MB everytime), link to IMDB for cast/crew and movie. IMDB-like rating directly on the front page would be nice too. I will figure out some more later on. At this point I would gladly PAY for it - I really can't live without Plex Export 2!

dalrmi which version you are using ? I have tried your link and with the safari of iphone your site is working perfect. So far i have tried the other versions and on iphone i couldnt see the plex-web-export it was always crashing the webrowser.

Can you upload your files ?

Thanks.

Hi miniop, sincerely I don't remember the Plex Export version I'm using, I've searched for it looking at the sources PHP files I've on my iMac but I didn't find that info.

Anyway I'm post a zip file of the entire structure so you can use the same version as mine.

You'll find a new file "Esegui.sh", is a shell script I've created to update the Plex Export data every time I do some changes in my Plex library.

Regards, Roberto.

dalrmi thanks for the files but i still have the same problem my library has more than 22.000 items. I think this is the problem and the safari of iphone is crashing

I've a problem: 

root@localhost:~# php /var/www/plexphp/cli.php -plex-url=http://localhost:32400
21:45:12 Welcome to Plex Export v2.0.1
21:45:12 Task 1 of 2: Scanning Plex Media Server Library
21:45:12 Gathering item information (this may take a while)
21:45:12 Error: Could not connect to Plex API: http://localhost:32400/

Yesterday it's working perfectly, and today nothing... 

I've update library but it doesn't work too...

 

What is the problem?

If you created a Plex Home then all the addresses need to be updated with the plex token and PlexExport hasn't been updated to that sadly.

If you are out of any plex home though it should work normally.

Thanks, the v2 works very well!

So can we change width and height thumbnail with argument or to the files ?

Hi all,

this is my batch script to launch the Plex Export v2 from windows ...

Enjoy!

@CLS
@ECHO OFF
TITLE Plex Export running...
	SETLOCAL
	REM The format of %TIME% is HH:MM:SS,CS for example 23:59:59,99
	SET STARTTIME=%TIME%
	SET Flog=C:\web\FPlog.log
	SET PlexURL=127.0.0.1:32400
	SET PlexTPL=isotope
	SET PlexPrgRoot="C:\Program Files (x86)\Plex\Plex Media Server"
	SET Sez1Plex=2,6
	SET OutDirPlex=C:\web\PlexMovie
	SET RootPlexExporter=c:\xampp\htdocs\pe2
	SET phpExe= C:\xampp\php\php.exe
	ECHO ______________________________________________________ >%Flog%
	DATE /T >>%Flog%
	TIME /T >>%Flog%
CD %PlexPrgRoot%
ECHO Plex sections available
ECHO Plex sections available >>%Flog%
"Plex Media Scanner.exe" -l
"Plex Media Scanner.exe" -l >>%Flog%

ECHO.
ECHO ______________________________________________________
ECHO ______________________________________________________ >>%Flog%
ECHO - Start export from Plex
ECHO.
ECHO Start Export Movie >>%Flog%
ECHO ______________________________________________________ >>%Flog%
CD %RootPlexExporter%
%phpExe% cli.php -section="%Sez1Plex%" -output-dir="%OutDirPlex%" -plex-url=%PlexURL% -template=%PlexTPL% >>%Flog%

ECHO. >>%Flog%
ECHO Export completed
ECHO ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
ECHO Export completed >>%Flog%
ECHO ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅ >>%Flog%
TITLE Plex Export done. Close window.

set ENDTIME=%TIME%

rem output as time
ECHO.
ECHO. >>%Flog%
ECHO ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅ >>%Flog%
ECHO ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
echo  - STARTTIME: %STARTTIME% >>%Flog%
echo  - ENDTIME: %ENDTIME >>%Flog%

rem convert STARTTIME and ENDTIME to centiseconds
set /A STARTTIME=(1%STARTTIME:~0,2%-100)*360000 + (1%STARTTIME:~3,2%-100)*6000 + (1%STARTTIME:~6,2%-100)*100 + (1%STARTTIME:~9,2%-100)
set /A ENDTIME=(1%ENDTIME:~0,2%-100)*360000 + (1%ENDTIME:~3,2%-100)*6000 + (1%ENDTIME:~6,2%-100)*100 + (1%ENDTIME:~9,2%-100)

rem calculating the duratyion is easy
set /A DURATION=%ENDTIME%-%STARTTIME%

rem we might have measured the time inbetween days
if %ENDTIME% LSS %STARTTIME% set set /A DURATION=%STARTTIME%-%ENDTIME%

rem now break the centiseconds down to hors, minutes, seconds and the remaining centiseconds
set /A DURATIONH=%DURATION% / 360000
set /A DURATIONM=(%DURATION% - %DURATIONH%*360000) / 6000
set /A DURATIONS=(%DURATION% - %DURATIONH%*360000 - %DURATIONM%*6000) / 100
set /A DURATIONHS=(%DURATION% - %DURATIONH%*360000 - %DURATIONM%*6000 - %DURATIONS%*100)

rem some formatting
if %DURATIONH% LSS 10 set DURATIONH=0%DURATIONH%
if %DURATIONM% LSS 10 set DURATIONM=0%DURATIONM%
if %DURATIONS% LSS 10 set DURATIONS=0%DURATIONS%
if %DURATIONHS% LSS 10 set DURATIONHS=0%DURATIONHS%

rem outputing
echo _____ STARTTIME: %STARTTIME% centiseconds
echo _____ ENDTIME: %ENDTIME% centiseconds
echo __________  DURATION: %DURATION% in centiseconds
echo __________  %DURATIONH%:%DURATIONM%:%DURATIONS%,%DURATIONHS%
	echo _____ STARTTIME: %STARTTIME% centiseconds >>%Flog%
	echo _____ ENDTIME: %ENDTIME% centiseconds >>%Flog%
	echo __________  DURATION: %DURATION% in centiseconds >>%Flog%
	echo __________  %DURATIONH%:%DURATIONM%:%DURATIONS%,%DURATIONHS% >>%Flog%

endlocal
goto :EOF

PAUSE