diff --git a/Emby.Server.Implementations/Devices/CameraUploadsFolder.cs b/Emby.Server.Implementations/Devices/CameraUploadsFolder.cs
index 55063872c1..5c205dd199 100644
--- a/Emby.Server.Implementations/Devices/CameraUploadsFolder.cs
+++ b/Emby.Server.Implementations/Devices/CameraUploadsFolder.cs
@@ -28,7 +28,7 @@ namespace Emby.Server.Implementations.Devices
[IgnoreDataMember]
public override string CollectionType
{
- get { return MediaBrowser.Model.Entities.CollectionType.Photos; }
+ get { return MediaBrowser.Model.Entities.CollectionType.HomeVideos; }
}
[IgnoreDataMember]
diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csproj
index 083a147889..1ecbabf2f4 100644
--- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj
+++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj
@@ -435,7 +435,6 @@
-
@@ -573,6 +572,7 @@
+
diff --git a/Emby.Server.Implementations/Images/BaseDynamicImageProvider.cs b/Emby.Server.Implementations/Images/BaseDynamicImageProvider.cs
index 3f9ea79c6a..5cd7e4262e 100644
--- a/Emby.Server.Implementations/Images/BaseDynamicImageProvider.cs
+++ b/Emby.Server.Implementations/Images/BaseDynamicImageProvider.cs
@@ -42,23 +42,14 @@ namespace Emby.Server.Implementations.Images
return true;
}
- public virtual IEnumerable GetSupportedImages(IHasMetadata item)
+ public virtual ImageType[] GetSupportedImages(IHasMetadata item)
{
- return new List
+ return new ImageType[]
{
- ImageType.Primary,
- ImageType.Thumb
+ ImageType.Primary
};
}
- private IEnumerable GetEnabledImages(IHasMetadata item)
- {
- //var options = ProviderManager.GetMetadataOptions(item);
-
- return GetSupportedImages(item);
- //return GetSupportedImages(item).Where(i => IsEnabled(options, i, item)).ToList();
- }
-
public async Task FetchAsync(T item, MetadataRefreshOptions options, CancellationToken cancellationToken)
{
if (!Supports(item))
@@ -67,7 +58,7 @@ namespace Emby.Server.Implementations.Images
}
var updateType = ItemUpdateType.None;
- var supportedImages = GetEnabledImages(item).ToList();
+ var supportedImages = GetSupportedImages(item);
if (supportedImages.Contains(ImageType.Primary))
{
@@ -253,7 +244,7 @@ namespace Emby.Server.Implementations.Images
return false;
}
- var supportedImages = GetEnabledImages(item).ToList();
+ var supportedImages = GetSupportedImages(item);
if (supportedImages.Contains(ImageType.Primary) && HasChanged(item, ImageType.Primary))
{
@@ -283,8 +274,7 @@ namespace Emby.Server.Implementations.Images
return false;
}
- var age = DateTime.UtcNow - image.DateModified;
- if (age.TotalDays <= MaxImageAgeDays)
+ if (!HasChangedByDate(item, image))
{
return false;
}
@@ -293,6 +283,16 @@ namespace Emby.Server.Implementations.Images
return true;
}
+ protected virtual bool HasChangedByDate(IHasMetadata item, ItemImageInfo image)
+ {
+ var age = DateTime.UtcNow - image.DateModified;
+ if (age.TotalDays <= MaxImageAgeDays)
+ {
+ return false;
+ }
+ return true;
+ }
+
protected List GetFinalItems(IEnumerable items)
{
return GetFinalItems(items, 4);
diff --git a/Emby.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs b/Emby.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs
index fc5cab0a0b..94cafa3e2d 100644
--- a/Emby.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs
+++ b/Emby.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs
@@ -11,7 +11,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
-
+using MediaBrowser.Controller.Drawing;
using MediaBrowser.Controller.IO;
using MediaBrowser.Model.IO;
using MediaBrowser.Model.Logging;
@@ -216,12 +216,12 @@ namespace Emby.Server.Implementations.Library.Resolvers.Movies
if (string.Equals(collectionType, CollectionType.MusicVideos, StringComparison.OrdinalIgnoreCase))
{
- return FindMovie(args.Path, args.Parent, files, args.DirectoryService, collectionType, true, false);
+ return FindMovie(args, args.Path, args.Parent, files, args.DirectoryService, collectionType, false);
}
if (string.Equals(collectionType, CollectionType.HomeVideos, StringComparison.OrdinalIgnoreCase))
{
- return FindMovie