Use HTTPS for API requests: FanArt: http:// -> https://

pull/702/head
nfnty 9 years ago
parent 6d7349284f
commit 8711b8be14

@ -16,6 +16,7 @@ using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using CommonIO; using CommonIO;
@ -185,6 +186,7 @@ namespace MediaBrowser.Providers.Movies
PopulateImages(list, obj.moviebackground, ImageType.Backdrop, 1920, 1080); PopulateImages(list, obj.moviebackground, ImageType.Backdrop, 1920, 1080);
} }
private Regex _regex_http = new Regex("^http://");
private void PopulateImages(List<RemoteImageInfo> list, List<Image> images, ImageType type, int width, int height) private void PopulateImages(List<RemoteImageInfo> list, List<Image> images, ImageType type, int width, int height)
{ {
if (images == null) if (images == null)
@ -208,7 +210,7 @@ namespace MediaBrowser.Providers.Movies
Width = width, Width = width,
Height = height, Height = height,
ProviderName = Name, ProviderName = Name,
Url = url, Url = _regex_http.Replace(url, "https://", 1),
Language = i.lang Language = i.lang
}; };

Loading…
Cancel
Save