mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
add organize now/sync prepare buttons
This commit is contained in:
@@ -39,12 +39,6 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
|
||||
item.Id = libraryManager.GetNewItemId(item.Path, item.GetType());
|
||||
|
||||
// If the resolver didn't specify this
|
||||
if (string.IsNullOrEmpty(item.DisplayMediaType))
|
||||
{
|
||||
item.DisplayMediaType = item.GetType().Name;
|
||||
}
|
||||
|
||||
item.IsLocked = item.Path.IndexOf("[dontfetchmeta]", StringComparison.OrdinalIgnoreCase) != -1 ||
|
||||
item.Parents.Any(i => i.IsLocked);
|
||||
|
||||
@@ -79,12 +73,6 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
|
||||
item.Id = libraryManager.GetNewItemId(item.Path, item.GetType());
|
||||
|
||||
// If the resolver didn't specify this
|
||||
if (string.IsNullOrEmpty(item.DisplayMediaType))
|
||||
{
|
||||
item.DisplayMediaType = item.GetType().Name;
|
||||
}
|
||||
|
||||
// Make sure the item has a name
|
||||
EnsureName(item, args.FileInfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user