Any updates on an HTML version!? I am loving this!
Is it possible to run the script without starting Plex? I would like to set up a web page that lists all of my current movies/tv shows and have it update daily or when new content is added. I don’t keep Plex running constantly so it would be helpful if I could run it using a folder action, for example.
Plex is great fun to use. Only looking for this one feature: Create an html page with couple rows like poster (with the gfx), titel, runtime etc. to see offline whats in the house. That would be great.
I made a very simple XSL stylesheet to use with your exported videodb.xml file today. You might find it useful: http://gist.github.com/354584
Thanks a lot! This works great!
I guess I'm a bit more noob than I thought, but I have absolutely no idea what to do with this file. Any suggestions on how to check out what you've made?
EDIT: Nevermind, I figured it out. This is great! Now, if only it were alphabetized.
for those that don’t know how to use the style sheet, add the following line to the videodb.xml:
<?xml-stylesheet type="text/xsl" href="videodb.xsl"?>
and you can view the .xml in any browser.
Thanks a lot for these two solutions (both the .txt file export and the .xml + .xsl solution)!
Hello, all. Thanks for posting those two solutions. I’ve started messing with the plexport script to make HTML. So far I’ve just done my movies. It’s not perfect by any means. It’s pointing to the css from some site that I liked the layout. The links only point to youtube searches, and the box arts are just the first one in the list for each movie. I’ll attach my latest generated HTML today to show as an example; then I’ll post the edited plexport script if anybody wants it.
plexport.html (262 KB)
Looks awesome, I’d love the script
It’s coming. I started doing the TV Shows part last night, but I was too tired to finish. If I have time tonight, I’ll finish…otherwise it’ll be some rime this weekend.
The TV show section is a little mor difficult. I got all I need in one query, which is good I guess. That should make it run faster in theory.
Great - I'd love to see the script in my hands too. This is what I've been looking for a while now.
Here you go…just replace your current default.py file in the plexport directory you created earlier. Or better yet, create a new directory at the same level as your current plexport directory called something like “plexport HTML” and put this file there. That way you’ll have both options to choose from (text and html).
Since I’m lazy, I’ll just copy paste the comments I put in the file here:
NEW VERSION BY GYALIS
Modified version of “plexport” originally created by Zoara. Modified by Gyalis. I have no idea where Zoara is
heading with his/her version, so I don’t want to mess up what he/she is doing. I took a few programming shortcuts, so
this version can just be my “hacked” version. Or if Zoara wants to add what I’ve done to the existing project, great.
# I've added HTML. This now creates 3 html files on the desktop by default. One with movies only, one with TV shows only,
# and another with both movies and TV shows. These files link to each other, so you can bounce between them in your browser.
# The entries link to a YouTube search for the trailers.
# I've managed to get the TV show information out in one query, but there is an issue with some shows having multiple IDs
# ...which means they come back in multiple rows with the same season number. I can probably fix it in the query, but
# I just noticed it, so I'm leaving it till I decide to touch this again. All it does is cause the seasons to be SOMETIMES
# be displayed like this "Seasons: 1 (11 eps) 1 (1 eps) 2 (3 eps) 2 (9 eps)" instead of this "Seasons: 1 (12 eps) 2 (12 eps)".
# It happened on 3 of my 13 TV shows.
# I may have re-introduced a sorting bug, but I don't think so. I'm unnable to test since I don't have any shows with more
# than 9 seasons
Enjoy!
*Edit* I had to zip the file, so you'll need to unzip it.
default.py.zip (4.12 KB)
Woot, thanks for the hard work!
Great - absolutly great. I’ll need to figure out a few things du to the covers (i use the enhance ofdb.de highres scaper) etc. but it is simply working. Congrats. That’s script should be a core feature! Thank you very much.
Hey,
It's good to see some progress on this - it's fairly obvious that I have kind of abandoned this due to lack of time (it's on my list of things to do but way below a lot of other stuff) so I'm more than happy to see it picked up and improved by others. I may come back to it at a later point but as it stands, feel free to do whatever you like to it!
Thanks to por as well for the XSL stylesheet solution. I haven't had a chance to try either but judging by the comments they've gone down well. It's good to see people picking this up rather than letting it gather dust...
Thanks!
I love these scripts! Will there be a fix for the cases where it shows “Release Year: 0” ?
I noticed that too, but it's nit high on my priority list right now.
I do have a new version that downloads the images (instead of hotlinking to them). It takes a bit longer to run the first time you run it, but it lets you view it when not connected to the Internet...and gets around cases where the site blocks hotlinking or something...or goes down. The css is also local now.
I'll post that one later this week. If I have time, I can look at the release year issue.
really love your work, just a minor issue (500) days of summer is shown but without the title itself.
Please have a look (fourth item):
http://felix.ge1.de/plexlibrary/index.html
edit: never mind, was a scraping issue
Well I didn’t have much time to do anything this week, but I’ll just post what I have. It may be the last time I mess with it for a while. I changed the name to explex. Unzip the file explex 1.1 to the same scripts directory. Then from plex run “explex 1.1”. It’ll do what I described in in my previous post. There are a a few minor changes to the output. File name, “back to top” link, count of the movies, little things like that.
Remember, this version downloads the thumbs to your machine, so it’ll take longer the first time you run it. It won’t re-download a thumb that already exists, so your incremental runs will be quicker.
See the attached screenshot to see what it looks like.
Enjoy. Next time I touch Plex programmatically, I think I want to mess with something different. I was looking at the API, and I saw lots of cool stuff you can do. Maybe I’ll figure something out to make playlists remotely. Not sure how useful that’ll be…maybe for setting up a movie night or something? Regardless, it’ll be fun to do. I hope I get to do something like that one day.
fhb,
I’ll look at that if I go back into this. I don’t see that issue in my library though…then again I don’t have that movie. Maybe I’ll add it to see if it happens to me.
Are you scraping from imdb?