ExternalNotification now has AfterRename, to notify (XBMC) after all episodes have been renamed.

This commit is contained in:
Mark McDowall 2012-01-04 19:40:25 -08:00
commit e734bb6ecb
10 changed files with 75 additions and 5 deletions

View file

@ -41,5 +41,12 @@ namespace NzbDrone.Core.Providers.ExternalNotification
/// <param name = "message">The message to send to the receiver</param>
/// <param name = "series">The Series for the new download</param>
public abstract void OnRename(string message, Series series);
/// <summary>
/// Performs the after rename action, this will be handled after all renaming for episode/season/series
/// </summary>
/// <param name = "message">The message to send to the receiver</param>
/// <param name = "series">The Series for the new download</param>
public abstract void AfterRename(string message, Series series);
}
}

View file

@ -70,5 +70,10 @@ namespace NzbDrone.Core.Providers.ExternalNotification
{
}
public override void AfterRename(string message, Series series)
{
}
}
}

View file

@ -69,5 +69,10 @@ namespace NzbDrone.Core.Providers.ExternalNotification
{
}
public override void AfterRename(string message, Series series)
{
}
}
}

View file

@ -47,5 +47,10 @@ namespace NzbDrone.Core.Providers.ExternalNotification
{
}
public override void AfterRename(string message, Series series)
{
}
}
}

View file

@ -39,6 +39,12 @@ namespace NzbDrone.Core.Providers.ExternalNotification
public override void OnRename(string message, Series series)
{
}
public override void AfterRename(string message, Series series)
{
}
}
}

View file

@ -44,6 +44,11 @@ namespace NzbDrone.Core.Providers.ExternalNotification
}
public override void OnRename(string message, Series series)
{
}
public override void AfterRename(string message, Series series)
{
UpdateAndClean(series);
}