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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user