mirror of https://github.com/Sonarr/Sonarr
removed old TODOs.
This commit is contained in:
parent
34f3ee6b4b
commit
e1488229fe
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using NzbDrone.Api.REST;
|
using NzbDrone.Api.REST;
|
||||||
using NzbDrone.Core.Model;
|
|
||||||
using NzbDrone.Core.Tv;
|
using NzbDrone.Core.Tv;
|
||||||
|
|
||||||
namespace NzbDrone.Api.Series
|
namespace NzbDrone.Api.Series
|
||||||
|
|
|
@ -16,10 +16,12 @@ namespace NzbDrone.Common.EnvironmentInfo
|
||||||
public class AppFolderInfo : IAppFolderInfo
|
public class AppFolderInfo : IAppFolderInfo
|
||||||
{
|
{
|
||||||
private readonly IDiskProvider _diskProvider;
|
private readonly IDiskProvider _diskProvider;
|
||||||
|
private readonly Logger _logger;
|
||||||
|
|
||||||
public AppFolderInfo(IDiskProvider diskProvider)
|
public AppFolderInfo(IDiskProvider diskProvider)
|
||||||
{
|
{
|
||||||
_diskProvider = diskProvider;
|
_diskProvider = diskProvider;
|
||||||
|
_logger = LogManager.GetCurrentClassLogger();
|
||||||
AppDataFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData, Environment.SpecialFolderOption.DoNotVerify), "NzbDrone");
|
AppDataFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData, Environment.SpecialFolderOption.DoNotVerify), "NzbDrone");
|
||||||
StartUpFolder = new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName;
|
StartUpFolder = new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName;
|
||||||
TempFolder = Path.GetTempPath();
|
TempFolder = Path.GetTempPath();
|
||||||
|
@ -54,7 +56,7 @@ namespace NzbDrone.Common.EnvironmentInfo
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
//Todo: Add logging
|
_logger.WarnException("Coudn't set app folder permission", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,9 +40,6 @@ namespace NzbDrone.Core.Datastore
|
||||||
private readonly IDatabase _database;
|
private readonly IDatabase _database;
|
||||||
private readonly IMessageAggregator _messageAggregator;
|
private readonly IMessageAggregator _messageAggregator;
|
||||||
|
|
||||||
//TODO: add assertion to make sure model properly mapped
|
|
||||||
|
|
||||||
|
|
||||||
private IDataMapper DataMapper
|
private IDataMapper DataMapper
|
||||||
{
|
{
|
||||||
get { return _database.DataMapper; }
|
get { return _database.DataMapper; }
|
||||||
|
|
|
@ -2,7 +2,6 @@ namespace NzbDrone.Core.IndexerSearch.Definitions
|
||||||
{
|
{
|
||||||
public class SingleEpisodeSearchCriteria : SearchCriteriaBase
|
public class SingleEpisodeSearchCriteria : SearchCriteriaBase
|
||||||
{
|
{
|
||||||
//TODO make sure these are populated with scene if required
|
|
||||||
public int EpisodeNumber { get; set; }
|
public int EpisodeNumber { get; set; }
|
||||||
public int SeasonNumber { get; set; }
|
public int SeasonNumber { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,6 @@ namespace NzbDrone.Core.Parser
|
||||||
{
|
{
|
||||||
if (series.SeriesType == SeriesTypes.Standard)
|
if (series.SeriesType == SeriesTypes.Standard)
|
||||||
{
|
{
|
||||||
//Todo: Collect this as a Series we want to treat as a daily series, or possible parsing error
|
|
||||||
_logger.Warn("Found daily-style episode for non-daily series: {0}.", series);
|
_logger.Warn("Found daily-style episode for non-daily series: {0}.", series);
|
||||||
return new List<Episode>();
|
return new List<Episode>();
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,6 @@ namespace NzbDrone.Update.UpdateEngine
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO:Should be able to restart service if anything beyond this point fails
|
|
||||||
_logger.Info("Killing all running processes");
|
_logger.Info("Killing all running processes");
|
||||||
|
|
||||||
if (_processProvider.GetProcessByName(ProcessProvider.NzbDroneConsoleProcessName).Any())
|
if (_processProvider.GetProcessByName(ProcessProvider.NzbDroneConsoleProcessName).Any())
|
||||||
|
|
Loading…
Reference in New Issue