1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Added comments

This commit is contained in:
Mark McDowall 2013-01-19 15:15:31 -08:00
parent 2d21ee67e1
commit eeb16d6d5a

View File

@ -90,6 +90,9 @@ public virtual List<EpisodeFile> Scan(Series series, string path)
}
}
//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;
_seriesProvider.UpdateSeries(series);
@ -107,7 +110,8 @@ public virtual EpisodeFile ImportFile(Series series, string 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...
if (size < Constants.IgnoreFileSize)
{
@ -159,6 +163,9 @@ public virtual EpisodeFile ImportFile(Series series, string filePath)
episodeFile.SeasonNumber = parseResult.SeasonNumber;
episodeFile.SceneName = Path.GetFileNameWithoutExtension(filePath.NormalizePath());
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);
//Link file to all episodes
@ -170,7 +177,6 @@ public virtual EpisodeFile ImportFile(Series series, string filePath)
Logger.Debug("Linking [{0}] > [{1}]", filePath, ep);
}
return episodeFile;
}