|
|
|
@ -54,9 +54,16 @@ namespace NzbDrone.Core.MediaFiles
|
|
|
|
|
var mediaFileList = GetVideoFiles(series.Path);
|
|
|
|
|
|
|
|
|
|
foreach (var filePath in mediaFileList)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
ImportFile(series, filePath);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
Logger.ErrorException("Couldn't import file " + filePath, e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Todo: Find the "best" episode file for all found episodes and import that one
|
|
|
|
|
//Todo: Move the episode linking to here, instead of import (or rename import)
|
|
|
|
@ -140,9 +147,16 @@ namespace NzbDrone.Core.MediaFiles
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var series in seriesToScan)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
Scan(series);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
Logger.ErrorException("Diskscan failed for " + series.Title, e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Handle(EpisodeInfoAddedEvent message)
|
|
|
|
|