minor tweaks

pull/4/head
kay.one 13 years ago
parent fc0d7fc72f
commit f0735c0693

@ -56,7 +56,7 @@ namespace NzbDrone.Core.Test
[TestCase(@"z:\tv shows\robot chicken\Specials\S00E16 - Dear Consumer - SD TV.avi", 0, 16)]
[TestCase(@"D:\shares\TV Shows\Parks And Recreation\Season 2\S02E21 - 94 Meetings - 720p TV.mkv", 2, 21)]
[TestCase(@"D:\shares\TV Shows\Battlestar Galactica (2003)\Season 2\S02E21.avi", 2, 21)]
[TestCase("C:/Test/TV/Chuck.4x05.HDTV.XviD-LOL", "Chuck", 4, 5)]
[TestCase("C:/Test/TV/Chuck.4x05.HDTV.XviD-LOL", 4, 5)]
public void PathParse_tests(string path, int season, int episode)
{
var result = Parser.ParsePath(path);

@ -158,7 +158,7 @@ namespace NzbDrone.Core.Providers.Jobs
}
};
_jobThread = new Thread(starter) { Name = "JobQueueThread" };
_jobThread = new Thread(starter) { Name = "JobQueueThread", Priority = ThreadPriority.BelowNormal };
_jobThread.Start();
}

@ -115,7 +115,7 @@ namespace NzbDrone.Core.Providers
public virtual int DeleteOrphaned()
{
Logger.Trace("Deleting orphaned files.");
Logger.Trace("Deleting orphan files.");
var updated = _database.Execute(@"DELETE FROM EpisodeFiles
WHERE EpisodeFileId IN
@ -126,7 +126,7 @@ namespace NzbDrone.Core.Providers
if (updated > 0)
{
Logger.Debug("Removed {0} orphaned files.", updated);
Logger.Debug("Removed {0} orphan file(s) from database.S", updated);
}
return updated;
@ -186,7 +186,7 @@ namespace NzbDrone.Core.Providers
if (_configProvider.ReplaceSpaces)
result = result.Replace(' ', '.');
Logger.Trace("New File Name is: {0}", result.Trim());
Logger.Trace("New File Name is: [{0}]", result.Trim());
return CleanFilename(result.Trim());
}

@ -38,7 +38,7 @@ namespace NzbDrone.Core.Providers
while ((line = reader.ReadLine()) != null)
{
var split = line.Split(',');
var seriesId = 0;
int seriesId;
Int32.TryParse(split[1], out seriesId);
var map = new SceneMapping();

Loading…
Cancel
Save