Fixed SceneMappingProvider to resolve an issue with series with multiple clean names failing to return a Scene Name when being looked up via SeriesId.

This commit is contained in:
Mark McDowall 2011-08-22 23:07:04 -07:00
commit fb9c2b6d9e
2 changed files with 34 additions and 1 deletions

View file

@ -72,7 +72,7 @@ namespace NzbDrone.Core.Providers
public virtual string GetSceneName(int seriesId)
{
var item = _database.SingleOrDefault<SceneMapping>("WHERE SeriesId = @0", seriesId);
var item = _database.FirstOrDefault<SceneMapping>("WHERE SeriesId = @0", seriesId);
if (item == null)
return null;