Plex Web Export



Yeah, that would have helped, something like -list, but it's ok.
I think trial and error works better, the whole process takes a few minutes...
Just try one ID at a time, run and CTRL+C...

THANKS MAN, it's awesome!
Now that donation.........


The numbers are database ids that autoincrement and never repeat. So most likely you deleted a section (or two) at some point, leaving you with some numbers that are unused (5 & 6) and some that are higher than the actual number of sections you have (9).

@rsalmei Brian’s explanation is spot on. Plex Media Server generates the IDs so they don’t always follow a recognisable pattern. The advantage of using unique numbers is you only need to work them out once and they won’t change.



Better than that is to not ever have to work them out in the first place. Here's my patch to allow you to use section names: http://github.com/Dachande663/Plex-Export/pull/2

@Brian hummmm, that explains it all, the blanks, the max… it’s a sequence in a db… thanks!

And yes, I deleted a few sections!

(All the clues was there, I am a computer engineer, I should had figured it out, lol)



@Dachande yes, you’re right…



@Brian (again) wow, very good! I am a Java fellow, don’t know php too, and didn’t try to be an adventurer…

But the commits are pending, right? Dachande has to authorize them?



I'm usually a Ruby/JavaScript guy, and we... well, we have an institutional bias against PHP, to put it politely :D

And no, Dachande doesn't have to merge my commits in order for you to use them. All you have to do is add my fork as a remote (assuming you checked it out from git):


<br />
$ git remote add eventualbuddha http://github.com/eventualbuddha/Plex-Export.git<br />




And once you've done that (only have to do that part once), then just merge my branch into yours:


<br />
$ git fetch eventualbuddha<br />
$ git merge eventualbuddha/section-names<br />




Note that when Dachande does merge it, you may want to switch back to his branch:


<br />
$ git fetch origin<br />
$ git reset --hard origin/master<br />


Pushed out some new updates:



FIXED: j/k navigation now works the way you’d expect it

ADDED: can now filter sections by title e.g. -sections=“My Movies,1,2,TV Shows”



Just want to say thank you to Brian Donovan who did most of the work!

Wow, dachande is fast!

I’ve just read Brian’s message, and it’s merged already!

But thanks anyway Brian, thanks very much.



And thank you dachande!

Impressive what you’ve accomplished!



Has there been any conversation about integrating this with the existing Media Manager web interface? It’s looking great, but I’d love it if the app handled all the heavy lifting rather than me having to set up a separate webapp.

Great work, BTW...

Thanks,
Chris


I don't think they really serve the same purpose. While it's conceivable that the Web Manager could be put into some sort of read-only mode, I'd rather not go down that road. Besides, it's much faster to serve the export off of Dropbox than off of my laptop =)


I’m mainly interested in seeing the Media Manager’s web interface getting a facelift in line with what the Web Export currently has.

RE: Dropbox integration — Very interesting. I’ve never thought about using Dropbox as a service in that fashion. Would you be comfortable sharing the URL of your library? I’m curious as to how the experience feels.

Thanks,
Chris


Don't worry, the Web Manager looks will improve - the current "release" is really just an early test version and is really more of an easter egg. Here's the URL of my Plex Export in Dropbox: http://dl.dropbox.com/u/40652/movies/index.html.

Hmmm. Got a 404.



http://dl.dropbox.com/u/40652/movies/index.html

there was one period at the end that shouldn't have been there.

Ah, thanks. Didn’t notice that.



…pretty freaking slick. Thanks for sharing.

@Brian

Please Brian, how did you manage to setup the movies 9 and 2012 like that?

Mine is displaying “details - 9” and “details - 2012”…



@Dachande

Could I please ask one more thing?

The sections are sorted by ID, not by name or by user preference…

Is it ok to maintain the order we specify in the -sections?

(The first one is more important, because it starts selected)



And it's done. The order the sections are specified now dictates how they are shown.

It's worth saying that anytime you download a new version, re-run the cli.php script as there are often changes that have occurred in between versions even if your library might not have changed.


Thanks man, you rock!

Another big update:



ADDED: Total count at the top now includes individual TV episodes

ADDED: You can now browse seasons and episodes when viewing a show (experimental)



It’s worth mentioning that the export will now take longer as it has to go and get information for each season of each TV show. Any bugs, problems or requests just let me know.



Well, nothing special. I just named the files "9 (2009).m4v" and "2012 (2009).m4v".