diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-17 22:39:55 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-17 22:39:55 -0400 |
| commit | 6b278f9b041045baa0d6edcfe6cb44819b18bf0d (patch) | |
| tree | 7f8b288f483a4586c415758842b88906aa19f25b /MediaBrowser.Server.Implementations | |
| parent | cafc8356b202932f58d902a861bfbc3181b8e0f9 (diff) | |
stub out localizable plugin
Diffstat (limited to 'MediaBrowser.Server.Implementations')
3 files changed, 14 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index 43c985f33..0fda026fd 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -1673,7 +1673,7 @@ namespace MediaBrowser.Server.Implementations.Library throw new ArgumentNullException("viewType"); } - var id = GetNewItemId("35_namedview_" + name + user.Id.ToString("N") + (parentId ?? string.Empty), typeof(UserView)); + var id = GetNewItemId("36_namedview_" + name + user.Id.ToString("N") + (parentId ?? string.Empty), typeof(UserView)); var path = Path.Combine(ConfigurationManager.ApplicationPaths.InternalMetadataPath, "views", id.ToString("N")); diff --git a/MediaBrowser.Server.Implementations/Photos/DynamicImageHelpers.cs b/MediaBrowser.Server.Implementations/Photos/DynamicImageHelpers.cs index fce8c9b6b..7f8435097 100644 --- a/MediaBrowser.Server.Implementations/Photos/DynamicImageHelpers.cs +++ b/MediaBrowser.Server.Implementations/Photos/DynamicImageHelpers.cs @@ -21,6 +21,11 @@ namespace MediaBrowser.Server.Implementations.Photos throw new ArgumentException("Empty file found in files list"); } + if (files.Count == 0) + { + return null; + } + if (files.Count < 3) { return await GetSingleImage(files, fileSystem).ConfigureAwait(false); @@ -68,6 +73,11 @@ namespace MediaBrowser.Server.Implementations.Photos throw new ArgumentException("Empty file found in files list"); } + if (files.Count == 0) + { + return null; + } + if (files.Count < 4) { return await GetSingleImage(files, fileSystem).ConfigureAwait(false); diff --git a/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs b/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs index e213327ea..2af4c6a8c 100644 --- a/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs +++ b/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs @@ -229,7 +229,9 @@ namespace MediaBrowser.Server.Implementations.UserViews CollectionType.Channels, CollectionType.LiveTv, CollectionType.Books, - CollectionType.Photos + CollectionType.Photos, + CollectionType.HomeVideos, + string.Empty }; return collectionStripViewTypes.Contains(view.ViewType ?? string.Empty); |
