mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-19 11:59:02 -07:00
commit
a91918450e
@ -31,14 +31,14 @@ namespace Emby.Photos
|
|||||||
}
|
}
|
||||||
|
|
||||||
// These are causing taglib to hang
|
// These are causing taglib to hang
|
||||||
private string[] _excludeExtensions = new string[] { ".dng" };
|
private string[] _includextensions = new string[] { ".jpg", ".jpeg", ".png", ".tiff" };
|
||||||
|
|
||||||
public Task<ItemUpdateType> FetchAsync(Photo item, MetadataRefreshOptions options, CancellationToken cancellationToken)
|
public Task<ItemUpdateType> FetchAsync(Photo item, MetadataRefreshOptions options, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
item.SetImagePath(ImageType.Primary, item.Path);
|
item.SetImagePath(ImageType.Primary, item.Path);
|
||||||
|
|
||||||
// Examples: https://github.com/mono/taglib-sharp/blob/a5f6949a53d09ce63ee7495580d6802921a21f14/tests/fixtures/TagLib.Tests.Images/NullOrientationTest.cs
|
// Examples: https://github.com/mono/taglib-sharp/blob/a5f6949a53d09ce63ee7495580d6802921a21f14/tests/fixtures/TagLib.Tests.Images/NullOrientationTest.cs
|
||||||
if (!_excludeExtensions.Contains(Path.GetExtension(item.Path) ?? string.Empty, StringComparer.OrdinalIgnoreCase))
|
if (_includextensions.Contains(Path.GetExtension(item.Path) ?? string.Empty, StringComparer.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -51,6 +51,7 @@ namespace Mono.Nat.Upnp
|
|||||||
NatUtility.Log("Initiating request to: {0}", ss);
|
NatUtility.Log("Initiating request to: {0}", ss);
|
||||||
|
|
||||||
var req = new HttpRequestOptions();
|
var req = new HttpRequestOptions();
|
||||||
|
req.LogErrors = false;
|
||||||
req.Url = ss;
|
req.Url = ss;
|
||||||
req.EnableKeepAlive = false;
|
req.EnableKeepAlive = false;
|
||||||
req.RequestContentType = "text/xml; charset=\"utf-8\"";
|
req.RequestContentType = "text/xml; charset=\"utf-8\"";
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("3.2.33.4")]
|
[assembly: AssemblyVersion("3.2.33.5")]
|
||||||
|
Loading…
Reference in New Issue
Block a user