Quantcast
Channel: Recent Discussions — Plex Forums
Viewing all articles
Browse latest Browse all 151235

MovieFan's Database Tool for Plex

$
0
0

Update 4/14/2015

 

- Change added_at date routine now located in Library sub-routine.  Can now be done on a per library basis.

- Added Find Unmatched feature.  This will identify media on your system not matched up in Plex.

 

*Note - The Find Unmatched currently gives false positives for cross media in your library folders.  Example, local movie posters will show as unmatched photos, and video in a photo library will show as an unmatched video.  I will get these fixed soon.

 
[attachment=47727:MovieFan's Database Tool for Plex v0.3.2.zip]
 

Update 4/11/2015

 

There was an error in the script for performing the change added_at feature.  Thanks to hthighway for finding the bug.

 
[attachment=47644:MovieFan's Database Tool for Plex v0.3.1 - Database.mscr.zip]
 

Update 3/31/2015

 

Small bug in the Database export script.  Thanks SA2000 for finding this.

 

New zip file.  I did not bother renumbering the files with a new version since it was literally 2 letters that I had to add.

 

[attachment=47081:MovieFan's Database Tool for Plex v0.3.1.1.zip]

 

Update 3/30/2015

 

Added a few more features.

 

- Database Export now allows you to pick from multiple export folder locations

- Database Export will export all tables, blank tables will result in a 0 byte file and will indicate and error in the log.  This error is normal.  I will change this in a future version with better error messages.

- Database Export will replace linefeed characters in the metadata_items summary field with <LF> so you can search and modify as you feel fit.

- Check for database corruption with SQLITE's integrity check feature

- Find media items marked as unavailable in Plex (A file will be created listing the files.  Due to limitations of the scripting program, the file will list 5000 files at a time, multiple output files will be generated if there are more than 5000 unavailable files.)

 

Update 3/2/2015

 

Bug has been fixed with downloading movie artwork.  I did not bother changing version numbers as it is a very minor fix.  Please download the latest zip package.

 

Update 2/27/20165

 

Version 0.3.0

 

New update to my tool.  I erased all the old info in this post since it is not important anymore.  Please let me know if you find any problems.  I have tested it and they all work on my system.  I only have 1 iTune XML file to test with and it worked on mine.

 

[attachment=46959:MovieFan's Database Tool for Plex v0.3.0.zip] Updated 3/2/2015

[attachment=45354:MortScript_and_support.zip]

 

I found the correct 32-bit and 64-bit versions of Mortscript.  Please use the correct version for your OS.  They are listed under PC (32-bit) and PC64 (64-bit).

 

I also added the Mortscript user manual in case anyone was curious as to what the code actually does.

 

Features

Backup/Restore/Export Plex Database

Change added date to aired date.  This will allow recently added to sort by recently aired.  Good for when you add old shows and do not want it to show in recently added.

Rename/Import/Export/Delete Playlists (including import iTunes XML playlist file)

Rename/Export Library Info (export will produce a csv file with most information on your media, no trailer or extra info at this time)

Edit custom library icon value

Save currently used movie poster and artwork along side movie

View/modify user settings

Copy watched status from 1 user to another

Delete all watched status from user

Manually download themes from plex.tv

Help Menus to explain what all the options do

Works on 32-bit and 64-bit Windows (using the proper Mortscript executable, included)

 

Known Issues: (not necessarily bugs)

Import a playlist only works for the admin account.  Other options work on any playlist, except smart playlist.

When restoring a backup, if PMS is running, it kills all the Plex process.  This could potentially result in data loss or possible database corruption if the database is being accessed at the time.  Best to exit Plex manually first.  The script cannot do it cleanly.

Changing the added date is a 1-time process.  It does not persist.  If you like this feature, you need to rerun it after each library update

I have not tested using network paths but was told before that it worked and nothing I changed would have affected that.

 

To Do List

Add playlist import for other users

Look for solution to closing Plex properly

Include smart playlists

Add saving of TV Show posters and artwork (this one is complicated, need much more time)

 

How To Install

Just unzip the 2 files into a folder of your choice.  Find the correct version of Mosrtscript.exe and copy it into the same folder.  Then right click on it and run as administrator.  This will register the .mscr extension in the registry.  Running it normally will say it registered, but it really doesn't.  I have also added a new file with Mortscript.  It actually comes with the program but I did not include it before.  It is originally called autorun.exe.  It is a shortcut to run your scripts.  Just rename it to match your script and running it will run the script.  I have already renamed it to match my script.  Just copy the file with the version of Mortscript you use.  I do this so I can associate the .mscr extension with notepad as default so opening the .mscr will allow me to view the file, while running the exe will run the script.  Otherwise you would need to right click and use Open With.  You can skip this file and just run the .mscr file you like.


Viewing all articles
Browse latest Browse all 151235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>