diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-25 23:12:29 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-25 23:12:29 -0500 |
| commit | 576768de594a56512693715d5748973984fe5f97 (patch) | |
| tree | b3408749af54217a931e1635adc88a3b2a015ec5 /MediaBrowser.Api/Images/ImageService.cs | |
| parent | 561b6302104d5f722f90ba7244375f217b17a18d (diff) | |
update translations
Diffstat (limited to 'MediaBrowser.Api/Images/ImageService.cs')
| -rw-r--r-- | MediaBrowser.Api/Images/ImageService.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Images/ImageService.cs b/MediaBrowser.Api/Images/ImageService.cs index 561ce4a5c..9d7362f63 100644 --- a/MediaBrowser.Api/Images/ImageService.cs +++ b/MediaBrowser.Api/Images/ImageService.cs @@ -652,7 +652,13 @@ namespace MediaBrowser.Api.Images { if ((Request.AcceptTypes ?? new string[] { }).Contains("image/webp", StringComparer.OrdinalIgnoreCase)) { - return new[] { ImageOutputFormat.Webp, ImageOutputFormat.Jpg, ImageOutputFormat.Png }; + var userAgent = Request.UserAgent ?? string.Empty; + + // Not displaying properly on iOS + if (userAgent.IndexOf("cfnetwork", StringComparison.OrdinalIgnoreCase) == -1) + { + return new[] { ImageOutputFormat.Webp, ImageOutputFormat.Jpg, ImageOutputFormat.Png }; + } } return new[] { ImageOutputFormat.Jpg, ImageOutputFormat.Png }; |
