Added comments
This commit is contained in:
parent
2d21ee67e1
commit
eeb16d6d5a
|
@ -90,6 +90,9 @@ namespace NzbDrone.Core.Providers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//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)
|
||||||
|
|
||||||
series.LastDiskSync = DateTime.Now;
|
series.LastDiskSync = DateTime.Now;
|
||||||
_seriesProvider.UpdateSeries(series);
|
_seriesProvider.UpdateSeries(series);
|
||||||
|
|
||||||
|
@ -107,7 +110,8 @@ namespace NzbDrone.Core.Providers
|
||||||
}
|
}
|
||||||
|
|
||||||
long size = _diskProvider.GetSize(filePath);
|
long size = _diskProvider.GetSize(filePath);
|
||||||
|
|
||||||
|
//Todo: We shouldn't skip on file size alone, 64MB Family Guy episodes are skipped...
|
||||||
//Skip any file under 70MB - New samples don't even have sample in the name...
|
//Skip any file under 70MB - New samples don't even have sample in the name...
|
||||||
if (size < Constants.IgnoreFileSize)
|
if (size < Constants.IgnoreFileSize)
|
||||||
{
|
{
|
||||||
|
@ -159,6 +163,9 @@ namespace NzbDrone.Core.Providers
|
||||||
episodeFile.SeasonNumber = parseResult.SeasonNumber;
|
episodeFile.SeasonNumber = parseResult.SeasonNumber;
|
||||||
episodeFile.SceneName = Path.GetFileNameWithoutExtension(filePath.NormalizePath());
|
episodeFile.SceneName = Path.GetFileNameWithoutExtension(filePath.NormalizePath());
|
||||||
episodeFile.ReleaseGroup = parseResult.ReleaseGroup;
|
episodeFile.ReleaseGroup = parseResult.ReleaseGroup;
|
||||||
|
|
||||||
|
//Todo: We shouldn't actually import the file until we confirm its the only one we want.
|
||||||
|
//Todo: Separate episodeFile creation from importing (pass file to import to import)
|
||||||
var fileId = _mediaFileProvider.Add(episodeFile);
|
var fileId = _mediaFileProvider.Add(episodeFile);
|
||||||
|
|
||||||
//Link file to all episodes
|
//Link file to all episodes
|
||||||
|
@ -170,7 +177,6 @@ namespace NzbDrone.Core.Providers
|
||||||
Logger.Debug("Linking [{0}] > [{1}]", filePath, ep);
|
Logger.Debug("Linking [{0}] > [{1}]", filePath, ep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return episodeFile;
|
return episodeFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue