mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
support head requests for images
This commit is contained in:
@@ -75,7 +75,7 @@ namespace MediaBrowser.XbmcMetadata
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
if (!item.IsFolder && !(item is IItemByName))
|
||||
if (item is Video)
|
||||
{
|
||||
SaveMetadataForItem(item, ItemUpdateType.MetadataEdit);
|
||||
}
|
||||
|
||||
@@ -852,6 +852,11 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
|
||||
private static void AddUserData(BaseItem item, XmlWriter writer, IUserManager userManager, IUserDataManager userDataRepo, XbmcMetadataOptions options)
|
||||
{
|
||||
if (!(item is Video))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var userId = options.UserId;
|
||||
if (string.IsNullOrWhiteSpace(userId))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user