mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
stub out localizable plugin
This commit is contained in:
@@ -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"));
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user