Existing series won't blow up when tvdb dies

Fixed: Issues with TheTVDB won't cause the Add Series page to error out
This commit is contained in:
Mark McDowall
2012-08-29 17:57:23 -07:00
parent 8b45714e59
commit 8854269a43
2 changed files with 28 additions and 9 deletions
@@ -6,7 +6,14 @@
Layout = null;
}
@if (Model.ExistingSeries.Count == 0)
@if (Model == null)
{
<h2 style="color: tomato">
Error searching TheTVDB, please try again later.
</h2>
}
else if (!Model.ExistingSeries.Any())
{
<h2 style="color: tomato">
No series available. Try adding a new Root Folder.