Kodi Community Forum

Full Version: [WINDOWS] XBMC Media Library Process and Maintenance Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In an attempt at automation, I have come up with script to properly name all my media, transfer it to my library, and perform some regular file/folder maintenance. The script can be scheduled to make life easy after acquiring your tv shows and movies.

This script does the following:
1. Renames tv shows/movies to properly XMBC convention. (using The Renamer)
2. Moves files to XBMC file server.
3. Deletes any thumbs.db that get created.
4. Deletes empty folders. (TV shows that I have watched and deleted, but folders get left behind).

Prerequisites: (takes a bit of time, but worth it)
1. Map all the media library drives. Y to TV shows, Z to movies
2. The Renamer - Take the time to set up all your shows. But worth it.
3. Robocopy
4. create a txt file called folderkeep.txt. Place it in the sorted directories, and the TVShows/Movies folders. Keeps the sorted folders from being deleted.

RenamingScript

Process
1. Files downloaded to c:\downloads\unsortedTV and c:\downloads\UnsortedMovies
2. Script moves files to c:\Sorted\TV and c:\sorted\Movies. (Renamer has directories set up).
3. Files are Robocopy'd to the respective path on the file server.
4. All thumbs.db files are found/deleted in Movies/TV Shows
5. All empty TV show directories are deleted.

Goals
1. Add EmberMediaManager movie metadata fetching.
2. Automated to run if no downloads are in progress.

Any feedback would be appreciated.