mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 14:55:20 -07:00
Update Synology Indexer For Movies (#486)
This commit is contained in:
parent
16b2cc49d4
commit
2bda0f700c
1 changed files with 8 additions and 4 deletions
|
@ -27,15 +27,15 @@ namespace NzbDrone.Core.Notifications.Synology
|
||||||
{
|
{
|
||||||
if (Settings.UpdateLibrary)
|
if (Settings.UpdateLibrary)
|
||||||
{
|
{
|
||||||
foreach (var oldFile in message.OldFiles)
|
foreach (var oldFile in message.OldMovieFiles)
|
||||||
{
|
{
|
||||||
var fullPath = Path.Combine(message.Series.Path, oldFile.RelativePath);
|
var fullPath = Path.Combine(message.Movie.Path, oldFile.RelativePath);
|
||||||
|
|
||||||
_indexerProxy.DeleteFile(fullPath);
|
_indexerProxy.DeleteFile(fullPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
var fullPath = Path.Combine(message.Series.Path, message.EpisodeFile.RelativePath);
|
var fullPath = Path.Combine(message.Movie.Path, message.MovieFile.RelativePath);
|
||||||
|
|
||||||
_indexerProxy.AddFile(fullPath);
|
_indexerProxy.AddFile(fullPath);
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,10 @@ namespace NzbDrone.Core.Notifications.Synology
|
||||||
|
|
||||||
public override void OnMovieRename(Movie movie)
|
public override void OnMovieRename(Movie movie)
|
||||||
{
|
{
|
||||||
|
if (Settings.UpdateLibrary)
|
||||||
|
{
|
||||||
|
_indexerProxy.UpdateFolder(movie.Path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnRename(Series series)
|
public override void OnRename(Series series)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue