mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
updated nuget
This commit is contained in:
@@ -135,7 +135,7 @@
|
||||
"HeaderSelectTranscodingPath": "Select Transcoding Temporary Path",
|
||||
"HeaderSelectImagesByNamePath": "Select Images By Name Path",
|
||||
"HeaderSelectMetadataPath": "Select Metadata Path",
|
||||
"HeaderSelectServerCachePathHelp": "Browse or enter the path to use for server cache files. The folder must be writeable. The location of this folder will directly impact server performance and should ideally be placed on a solid state drive.",
|
||||
"HeaderSelectServerCachePathHelp": "Browse or enter the path to use for server cache files. The folder must be writeable.",
|
||||
"HeaderSelectTranscodingPathHelp": "Browse or enter the path to use for transcoding temporary files. The folder must be writeable.",
|
||||
"HeaderSelectImagesByNamePathHelp": "Browse or enter the path to your items by name folder. The folder must be writeable.",
|
||||
"HeaderSelectMetadataPathHelp": "Browse or enter the path you'd like to store metadata within. The folder must be writeable.",
|
||||
|
||||
@@ -147,11 +147,11 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
return path;
|
||||
}
|
||||
|
||||
private IEnumerable<BaseItem> GetPlaylistItems(IEnumerable<string> itemIds, string playlistMediaType, User user)
|
||||
private IEnumerable<BaseItem> GetPlaylistItems(IEnumerable<string> itemIds, string playlistMediaType)
|
||||
{
|
||||
var items = itemIds.Select(i => _libraryManager.GetItemById(i)).Where(i => i != null);
|
||||
|
||||
return Playlist.GetPlaylistItems(playlistMediaType, items, user);
|
||||
return Playlist.GetPlaylistItems(playlistMediaType, items, null);
|
||||
}
|
||||
|
||||
public async Task AddToPlaylist(string playlistId, IEnumerable<string> itemIds)
|
||||
@@ -166,17 +166,11 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
var list = new List<LinkedChild>();
|
||||
var itemList = new List<BaseItem>();
|
||||
|
||||
foreach (var itemId in itemIds)
|
||||
var items = GetPlaylistItems(itemIds, playlist.MediaType).ToList();
|
||||
|
||||
foreach (var item in items)
|
||||
{
|
||||
var item = _libraryManager.GetItemById(itemId);
|
||||
|
||||
if (item == null)
|
||||
{
|
||||
throw new ArgumentException("No item exists with the supplied Id");
|
||||
}
|
||||
|
||||
itemList.Add(item);
|
||||
|
||||
list.Add(LinkedChild.Create(item));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using MediaBrowser.Controller.Security;
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
namespace MediaBrowser.Server.Implementations.Security
|
||||
@@ -17,11 +16,7 @@ namespace MediaBrowser.Server.Implementations.Security
|
||||
{
|
||||
if (value == null) throw new ArgumentNullException("value");
|
||||
|
||||
#if __MonoCS__
|
||||
return EncryptStringUniversal(value);
|
||||
#endif
|
||||
|
||||
return Encoding.Default.GetString(ProtectedData.Protect(Encoding.Default.GetBytes(value), null, DataProtectionScope.LocalMachine));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -34,11 +29,7 @@ namespace MediaBrowser.Server.Implementations.Security
|
||||
{
|
||||
if (value == null) throw new ArgumentNullException("value");
|
||||
|
||||
#if __MonoCS__
|
||||
return DecryptStringUniversal(value);
|
||||
#endif
|
||||
|
||||
return Encoding.Default.GetString(ProtectedData.Unprotect(Encoding.Default.GetBytes(value), null, DataProtectionScope.LocalMachine));
|
||||
}
|
||||
|
||||
private string EncryptStringUniversal(string value)
|
||||
|
||||
Reference in New Issue
Block a user