Jump to content

File Creation Date update from Original Air date


Recommended Posts

Posted

This is a Windows Powershell script to update all episodes of a series to match the episode's original air date pulled from Emby's database. You need to create an API code to connect to your Emby server installation. It will create a .json file on first run to save your server settings. The script will ask for your server's IP and API code, Emby's file path, and the Windows file path for the same content. After that, you type in the name of the series, and you will have the option to do a preview scan or a live run. After the preview scan, you can also do the live run. I've run it on several of my shows, and it appears to be working rather well. Use with caution, of course. This is my first-ever PowerShell script.

Example of the .json file it creates:
 

{
    "EmbyPathRoot":  "/mnt/TV/",
    "EmbyUrl":  "http://###.###.###.###:8096/",
    "WindowsPathRoot":  "\\\\Tower\\TV\\",
    "ApiKey":  "xxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

/mnt/TV/ is the Emby path to the TV files, and \\Tower\TV\ is the Windows path.

EmbyDateUpdater.zip

  • Thanks 1
Posted

Thanks for sharing.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...