Use HTTPS for API requests: FanArt: http:// -> https://
This commit is contained in:
parent
6d7349284f
commit
8711b8be14
|
@ -16,6 +16,7 @@ using System.Collections.Generic;
|
|||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using CommonIO;
|
||||
|
@ -185,6 +186,7 @@ namespace MediaBrowser.Providers.Movies
|
|||
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)
|
||||
{
|
||||
if (images == null)
|
||||
|
@ -208,7 +210,7 @@ namespace MediaBrowser.Providers.Movies
|
|||
Width = width,
|
||||
Height = height,
|
||||
ProviderName = Name,
|
||||
Url = url,
|
||||
Url = _regex_http.Replace(url, "https://", 1),
|
||||
Language = i.lang
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user