Plex Web Export



Hi,

thanks for your fast response, that sounds good.

For security reasons I can unterstand your opinion.
Perhaps it is possible to recognize if the request comes from the local lan or from the internet.
If this is possible you could perhaps make two versions, one with control functions another one just for viewing.

Also the possibility to create/have a handheld/smartphone version sounds exciting.

You are doing a real huge thing at the moment but please don't hestitate.
It's just a few ideas I have which makes your thing a little bit more interesting for me.

Enjoy the life of being a student :P

Greetz Thomas

Released a small update that fixes a problem whereby films would be shown as a maximum of 2Gb. (In technical terms it was hitting the max integer size in PHP so I’ve changed it to a float).

Thanks alot, but I still have the file size problem, some files work, and then some are still added as 2GB in size?



/mkh

Love this, showing some real potential not sure what I will use it for at the moment but great work.



I am finding it is not picking up artwork that has been locally selected, only a small thing but thought you might want to drop it on the list.



Thanks again for the work, would love to know how others are intending to use the web pages.

Great script. Thanks for all the hard work!

Man, congratulations, and thanks for your time and hard work.

I think it’s amazing. Always needed a way to show friends my list, so we can choose what to see.



Why there isn’t such functionality bultin directly in Media Manager?

We could right-click some section and Export it, or in the actions Export all sections…

Is it possible to integrate in the future?



And if I could get a vote, I’d vote against controlling anything with this interface.

If someone wants to watch anything, use Plex instead, not a program whose intent is EXPORT a static list.



Did you ever consider receiving donations?

I’d make a donation, you’re awesome.

Thanks again.



Did you push this to github? I'm interested in contributing, but I don't want to work against a stale version.


Ah no, I was working remotely so didn't use my git repo. I'm going to switch to it now and push out stuff as I do it. I'll merge your change as well, might also add keyboard navigation for items. Thanks :)

Can you implement some way to filter what sections get exported?

For example, I have a section to watch alone, one to watch with girlfriend, and one generic, to watch with family or friends.

I’d like to export just the last one…

Thanks!



Added to the (growing) feature request list :)

Also, I've added a donate button to the homepage (http://l0ke.com/bt). If anyone feels generous it'll go a long way to helping my Uni studies.


I got a weird error when I clicked the Donate button: "We were unable to decrypt the certificate id."

Love your work :)


WordPress decided to add a
in the middle of the input element, fixed now.

Okay, pushed out a massive update :slight_smile:



ADDED: Keyboard navigation (thank you to Brian Donovan). You can now use j/k to navigate and esc/x to exit the popup.

ADDED: filter command to importer. Add -sections=1,2,3 to the command line to show just those sections.

ADDED: iPhone version (very rough at the moment, suggestions welcome)

FIXED: more bugs. I’m still trying to work out why some file sizes are reported incorrectly.



IMPORTANT: The download link has changed! All code is now hosted on GitHub, so use the downloads link provided on GitHub to get the most up to date version (l0ke.com/c2).



Hope you all enjoy the update :slight_smile:

I think I’m doing something wrong. I just pulled your latest version from github, but when I execute it, all I see is this output:



<br />
<br />
macbook-van-dimitri:Dachande663-Plex-Export-4000284 dimitri$ php cli.php -plex-url=http://mac-mini.local:32400 -sections=5,4,3,7,15,1,6,13<br />
23:32:42 Welcome to the Plex Exporter v1<br />
23:32:42 Searching for sections in the Plex library at http://mac-mini.local:32400/<br />
23:32:42 Skipping section: POP<br />
23:32:42 Skipping section: Punk<br />
23:32:42 Skipping section: Reggae<br />
23:32:42 Skipping section: Rock & Metal<br />
23:32:42 Found 8 valid sections out of a possible 12 sections in this Plex library<br />
Array<br />
(<br />
    [5] => Array<br />
        (<br />
            [key] => 5<br />
            [type] => movie<br />
            [title] => Animation<br />
        )<br />
<br />
    [4] => Array<br />
        (<br />
            [key] => 4<br />
            [type] => movie<br />
            [title] => Comedy<br />
        )<br />
<br />
    [3] => Array<br />
        (<br />
            [key] => 3<br />
            [type] => movie<br />
            [title] => Documentary<br />
        )<br />
<br />
    [7] => Array<br />
        (<br />
            [key] => 7<br />
            [type] => movie<br />
            [title] => Home Videos<br />
        )<br />
<br />
    [15] => Array<br />
        (<br />
            [key] => 15<br />
            [type] => movie<br />
            [title] => Kids<br />
        )<br />
<br />
    [1] => Array<br />
        (<br />
            [key] => 1<br />
            [type] => movie<br />
            [title] => Movies<br />
        )<br />
<br />
    [6] => Array<br />
        (<br />
            [key] => 6<br />
            [type] => movie<br />
            [title] => Music Videos<br />
        )<br />
<br />
    [13] => Array<br />
        (<br />
            [key] => 13<br />
            [type] => show<br />
            [title] => TV Series<br />
        )<br />
<br />
)<br />



I have added the -sections argument just to try if it'd make a difference and I notice that it 'knows' the music sections.
if I omit the -sections filter the output looks like this:

23:34:46 Welcome to the Plex Exporter v1
23:34:46 Searching for sections in the Plex library at http://mac-mini.local:32400/
23:34:46 Error: Skipping section of unknown type: artist
23:34:46 Error: Skipping section of unknown type: artist
23:34:46 Error: Skipping section of unknown type: artist
23:34:46 Error: Skipping section of unknown type: artist
23:34:46 Found 8 valid sections out of a possible 12 sections in this Plex library


Ah, my stupid mistake, sorry. Left in a piece of debugging code to make sure it was scanning sections correctly :(. Pushed out a new version.

And the importer currently sees all sections (music, movies or otherwise) but disregards any it currently doesn't know how to export. When I get more time I can just drop in support for music hopefully.

new version works nicely now, thank you !

Great script!!! I have been looking for something like this for a while, I just have been too lazy to write it myself. I write a lot of PHP in my spare time, if you need help with anything please let me know.

Thanks man!

But sorry, I can’t figure out how to use the -sections param…

Is it just numeric? How can I find this number for each of my sections?



It's a comma separated list of the numeric section IDs you want to include. The easiest way to find out a section ID is to run the export as normally and then view the HTML page. When you click on a section you'll see the URL changes so it looks like index.html#123. The number is the ID of the current section you're viewing, make a note of them and then put them in the command line like -sections=1,2,etc (no spaces). I did think about adding in an option to view a list of sections before proceeding but it added a lot of complexity for the few times it'd be run.

I have 8 sections, but with trial and error, i had to use 3,4,9 to export what I want…

Why??? 9 out of 8? Trying 5 or 6 result in nothing getting exported!

These numbers doesn’t seem to make sense! At least for me.