#!/bin/bash echo "Building NFOGuard Emby Plugin - Diagnostic Version" echo "===================================================" echo "Enhanced logging to diagnose NFO date reading issue" echo "" # Clean previous builds rm -rf bin obj echo "Building diagnostic version..." # Build diagnostic version dotnet build NFOGuard.Emby.Plugin.csproj -c Release -f net48 if [ $? -eq 0 ]; then # Create version directory mkdir -p ../releases/v1.0.1-diagnostic cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../releases/v1.0.1-diagnostic/ # Copy to main plugin-release directory cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../plugin-release/ echo "✅ Diagnostic version built successfully" echo "" echo "🔍 NFOGuard v1.0.1-diagnostic ready!" echo "" echo "This version includes enhanced logging to show:" echo "• PremiereDate values for every episode/movie" echo "• DateCreated values for comparison" echo "• Reason why episodes are skipped (no PremiereDate vs already synced)" echo "" echo "To use:" echo "1. Replace your current plugin DLL" echo "2. Enable 'LogVerbose' in plugin settings" echo "3. Run the scheduled task" echo "4. Check Emby logs for detailed date information" echo "" echo "File ready: releases/v1.0.1-diagnostic/NFOGuard.Emby.Plugin.dll" else echo "❌ Build failed" exit 1 fi