mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-17 11:43:44 +01:00
fix resolution in photo provider
This commit is contained in:
@@ -38,11 +38,10 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers
|
||||
return null;
|
||||
}
|
||||
|
||||
protected static string[] ImageExtensions = { ".tiff", ".jpg", ".png", ".aiff" };
|
||||
protected static string[] ImageExtensions = { ".tiff", ".jpeg", ".jpg", ".png", ".aiff" };
|
||||
protected bool IsImageFile(string path)
|
||||
{
|
||||
return !path.EndsWith("folder.jpg", StringComparison.OrdinalIgnoreCase)
|
||||
&& !path.EndsWith("backdrop.jpg", StringComparison.OrdinalIgnoreCase)
|
||||
&& ImageExtensions.Any(p => path.EndsWith(p, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user