947 B
947 B
NFOGuard Emby Plugin
This is the companion Emby plugin for NFOGuard that automatically synchronizes TV episode PremiereDate to DateCreated to preserve import dates.
Features
- Real-time processing of new and updated TV episodes
- Automatically syncs PremiereDate → DateCreated when episodes are added/scanned
- Preserves original import dates from NFO files
- Logging for debugging and monitoring
Installation
- Build the plugin DLL
- Copy to Emby's plugins directory
- Restart Emby server
- Plugin will automatically start processing episodes
How It Works
The plugin hooks into Emby's library events (ItemAdded/ItemUpdated) and:
- Detects when TV episodes are processed
- Checks if PremiereDate exists and differs from DateCreated
- Updates DateCreated to match PremiereDate
- Saves changes to the Emby database
This ensures that Emby displays the correct import date (from NFO dateadded) instead of the scan date.