Merge branch 'master' of git://github.com/kayone/NzbDrone

pull/2/head
Mark McDowall 14 years ago
commit 351f73b520

@ -51,6 +51,7 @@ namespace NzbDrone.Core.Test
var ep = mocker.Resolve<EpisodeProvider>().GetEpisodesByParseResult(parseResult);
ep.Should().HaveCount(1);
parseResult.EpisodeTitle.Should().Be(fakeEpisode.Title);
ep.First().ShouldHave().AllPropertiesBut(e => e.Series);
}
@ -138,6 +139,7 @@ namespace NzbDrone.Core.Test
ep.Should().HaveCount(2);
db.Fetch<Episode>().Should().HaveCount(2);
ep.First().ShouldHave().AllPropertiesBut(e => e.Series);
parseResult.EpisodeTitle.Should().Be(fakeEpisode.Title);
}
[Test]

@ -354,6 +354,8 @@ namespace PetaPoco
// Open a connection (can be nested)
public void OpenSharedConnection()
{
using (MvcMiniProfiler.MiniProfiler.StepStatic("OpenSharedConnection"))
{
if (_sharedConnectionDepth == 0)
{
@ -366,6 +368,7 @@ namespace PetaPoco
}
_sharedConnectionDepth++;
}
}
/// <summary>
/// Close a previously opened connection

@ -137,6 +137,7 @@ namespace NzbDrone.Core.Providers
if (episodeInfo != null)
{
result.Add(episodeInfo);
parseResult.EpisodeTitle = episodeInfo.Title;
}
else
{

@ -34,12 +34,14 @@ namespace NzbDrone
#if DEBUG
Attach();
#endif
if (Environment.UserInteractive)
{
try
{
Logger.Info("Starting default browser. {0}",IISController.AppUrl);
Logger.Info("Starting default browser. {0}", IISController.AppUrl);
Process.Start(IISController.AppUrl);
}
catch(Exception e)
catch (Exception e)
{
Logger.ErrorException("Failed to open URL in default browser.", e);
}
@ -48,6 +50,7 @@ namespace NzbDrone
Console.ReadLine();
}
}
}
catch (Exception e)
{
AppDomainException(e);

Loading…
Cancel
Save