Thanks for the report. I will look into it some more. I know of 1 bug, not sure if it is the cause for your issue. I'm working on a new version that does this a little differently so maybe that will fix the issue. It may be a little while before i get the next release out. I was running into a problem where every new feature i want to add was going into the library script which to me did not make sense with the way i wanted to organize the feature, so i am rewriting the script and reorganizing everything. This will make it much easier for me to add more features in the future, and i have a couple of good ones i will be adding when i release this new version.
Hey MovieFan... any update on this "new release" that might fix my problem? It's time to go through my meticulously curated collection of 767 movies, delete all the local random images, and have your wonderful tool extract all the currently assigned Posters and Fanart back into my pristinely managed file system. (I'm kind of OCD about this if you haven't noticed).
The last time I attempted this (in my main Movie Library), your extraction logs claimed to have successfully created .jpg files that it actually didn't.
Still working on the update. I'm changing the way I do a few things to make it less prone to errors. I also have to fix my playlist import script. The new premium music feature makes it so my script is not always reliable.
Sorry for the late reply, attached are the result files from trying to import a playlist called "Cheer.m3u" which has two songs in it. The playlist shows up but with nothing in it.
Everything looks right. It converted the m3u into a csv so it can import into the DB. The callback I do to see what got added shows the 2 entries, so I do not know why it is reporting that there are 0 entries. I am especially stumped why it works when you rename the file. I guess the work around for now is to just use a 2 word filename, then you can rename the playlist after it is imported.
As mentioned, I am working on a new version so hopefully it will resolve any oddities like this.
Still working on the update. I'm changing the way I do a few things to make it less prone to errors. I also have to fix my playlist import script. The new premium music feature makes it so my script is not always reliable.
On my smaller Library (120 clips) everything worked perfect. But on my Move Library (767 Movies) there are some images that the log file claims were saved... but the images do not exist in the file system.
It fails on the same images every time, but I cannot tell what is different about these movie entries that would separate them out from the others.
I'm attempting to use this application to locate which files are "Unavailable" after a hard drive failure. Since I had the hard drive organized by genre there are some missing from each library. When I look through the library on the web client it shows the red "Unavailable" tag when I go into the movie however this application says that there are 0 unavailable files. Is there something I can do to help you figure out why it's not popping up with anything for me?
Hi moviefan - I am worried that you use the live database path for the tool rather than a working directory under user direct control : shut down plex media server, terminate residual processes, save database copy, move to a working directory, use the tool, move the updated database to the live directory with a saved backup copy available in case
If not done that way, is their way for the tool to establish without admin rights if plex media server is running when the tooll is operational ?
To clarify my post above. I meant to make sure that the script is using the correct database. There is another database with the exact same name located under the program directory. That database is a blank shell that PMS uses if it needs to create a new database. If the script is running on that copy, it is blank, so it will not find anything as being unavailable.
@SA2000 - You can always change the path for the database if you choose not to use the live one. I personally use my live copy and have been ever since I started this tool. I have not had 1 problem ever. Although I must admit I run PMS and the tool under my own admin user account. I have not tried with PMS running as a service under a different account. I would assume however that is all controlled by the OS. I could make the script run on a copy of the database but shutting down PMS to restore the file just seems like an unnecessary hassle. SQLITE3 also has its own internal checks to make sure the database is not locked before allowing my script to make changes.
Now that you bring up this issue, I will try to add a warning message to the start of the script should the user decide to use the live database. I'll have to look into seeing if there is a way I can check if the database is the live one or not.
It is just with your tool and what cayrars is referencing here and the fact that we do see database lock errors in logs these days, i am concerned that we may get to a point where what we see in logs, we are not sure if it is a Plex Media Server issue or some tool and user action leading to it.
I see your concern, but I don't think anything my script does will show up in the PMS logs. It's all straight manipulation of the database which Plex would know nothing about. Nothing it does should lock the database either so it should not impact PMS. I'll also look if there is a locked flag I can check to make sure the script does not try to run if it is set.
I really want to try this but I'm a little confused. I downloaded the zip file and unzipped it. I tried to run the exe as administrator and got an error (see below). also, I read all of the wonderful thing this does but I can't tell which .mscr file does which things. I guess I am a little scared to just start running things as I don't want to kill my database.
On a side note, when it says that it will take the images and put them in the folder named correctly so that they are always found, even if you move the folder...does it create folders for each of the movies and put them in or do they already have to be in folders?
Sorry about the confusing instructions. I think you forgot to grab the other zip file called Mortscript_and_support.zip located near the bottom.
- Unzip both zip files into any folder
- You should see 2 sub-folders PC and PC64, if you are running Windows 32-bit, got into the PC folder, if you are running Windows 64-bit go into the PC64 folder, take the 2 files you find in the appropriate folder, copy them down into the parent folder where you unzipped the files It should look like this
-You can now delete the ZIP files and the PC and PC64 folders if you wish. They are no longer needed.
- Find the mortscript.exe file that you just copied into this folder and double click on it. You should get a little pop-up message about the extensions being registered. Just click ok to close it.
- Find "MovieFan's Database Tool for Plex v0.3.2.exe" and doulbe-click on this to run the tool. You should never need to click on any other files.
I followed the steps and downloaded the files, put the 64 bit files into the folder and when I clicked the one it said it was registered. Then I opened the 0.3.2 file and it had to create a settings file; no problem. Then the screen popped up. Everything I clicked on just blinked and didn't do anything, except the "Help" and the debug. The help opened when clicked and the debug changed from "disabled" to "ENABLED". Nothing else happened. I tried to click again with the logs enabled but nothing was created.
Oops sorry again. Instant of double clicking on the mortscript.exe file you need to right click and run as administrator. Then double click on the 0.3.2 file.
Thank so for the assistance getting your program to run. I have one question about the fanart creation script:
I know how the -fanart.jpg extension is supposed to work when you put it in a folder with the movie. So let’s say that I have the following files:
M:Movies
Frozen (2013)
Frozen (2013).m4v
Frozen-scene.m4v
Armageddon (1998).m4v
Argo (2012).m4v
Fargo (1996).m4v
When I use your script, I assume that it will create the fanart for each of the movies and put them in the folders like this:
M:Movies
Frozen (2013)
Frozen (2013).m4v
Frozen-scene.m4v
Frozen (2013)-fanart.jpg
Armageddon (1998).m4v
Argo (2012).m4v
Fargo (1996).m4v
Armageddon-fanart.jpg
Argo-fanart.jpg
Fargo-fanart.jpg
So, my long winded question is, will Plex figure it all out when the movies and fanart are not in separate folders for each movie? If so, great, worry solved. If not, do you know of a script that will take all of my movies that are not already in folders and create properly named folders and put the movie into it so that when I run your fanart script, it all works?
Creating folders for 1K+ movies does not sound fun!!
Thank you very much for the clarification. I was concerned that the fanart was considered a "local extra".
@rbeatse,
I'm not trying to be a naysayer here... (I've had this conversation with MovieFan), but have you noticed any instances in which the extraction tool says that it created a -fanart.jpg file, but in fact it didn't?
I have around 780 movies in my Main Library, and when I run the extraction tool on that library, there are dozens of -fanart.jpg files that do not get created, even though the log file says they did.
I'm looking for why this might be happening or if it's just my specific data that the tool doesn't like.
[For the record, all of my movies are in separate folders.]
To be honest (that always sounds like I was lying before…anyway), I haven’t done it on the large folders yet. I ran it on the very small one and it worked. Before I ran it on my large one, I wanted to be sure I didn’t have to put everything in folders first. I will run it tonight and see what I get. Currently, I only have folders for the ones that have local extras. If they do not, I leave them all in one big “Movies” folder. I kind of wish I had a script to put them in folders but I do not want to do it all manually.