1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-23 22:25:56 -04:00

Fixed: Don't store incomplete image URLs (image doesn't exist)

This commit is contained in:
Mark McDowall
2014-12-31 15:22:22 -08:00
parent d4331e9470
commit f4169e165c
2 changed files with 25 additions and 5 deletions
+6
View File
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Xml.Linq;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using TVDBSharp.Models.DAO;
using TVDBSharp.Models.Enums;
@@ -82,6 +83,11 @@ namespace TVDBSharp.Models
private static Uri GetBannerUri(string uriSuffix)
{
if (uriSuffix.IsNullOrWhiteSpace())
{
return null;
}
return new Uri(UriPrefix + uriSuffix, UriKind.Absolute);
}