mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
improve poster sizing
This commit is contained in:
@@ -217,6 +217,9 @@
|
||||
<Compile Include="Notifications\UserNotification.cs" />
|
||||
<Compile Include="Persistence\IFileOrganizationRepository.cs" />
|
||||
<Compile Include="Persistence\MediaStreamQuery.cs" />
|
||||
<Compile Include="Playlists\IPlaylistManager.cs" />
|
||||
<Compile Include="Playlists\Playlist.cs" />
|
||||
<Compile Include="Playlists\PlaylistCreationOptions.cs" />
|
||||
<Compile Include="Providers\DirectoryService.cs" />
|
||||
<Compile Include="Providers\ICustomMetadataProvider.cs" />
|
||||
<Compile Include="Providers\IExternalId.cs" />
|
||||
|
||||
47
MediaBrowser.Controller/Playlists/IPlaylistManager.cs
Normal file
47
MediaBrowser.Controller/Playlists/IPlaylistManager.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MediaBrowser.Controller.Playlists
|
||||
{
|
||||
public interface IPlaylistManager
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the playlists.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user identifier.</param>
|
||||
/// <returns>IEnumerable<Playlist>.</returns>
|
||||
IEnumerable<Playlist> GetPlaylists(string userId);
|
||||
|
||||
/// <summary>
|
||||
/// Creates the playlist.
|
||||
/// </summary>
|
||||
/// <param name="options">The options.</param>
|
||||
/// <returns>Task<Playlist>.</returns>
|
||||
Task<Playlist> CreatePlaylist(PlaylistCreationOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Adds to playlist.
|
||||
/// </summary>
|
||||
/// <param name="playlistId">The playlist identifier.</param>
|
||||
/// <param name="itemIds">The item ids.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task AddToPlaylist(string playlistId, IEnumerable<string> itemIds);
|
||||
|
||||
/// <summary>
|
||||
/// Removes from playlist.
|
||||
/// </summary>
|
||||
/// <param name="playlistId">The playlist identifier.</param>
|
||||
/// <param name="indeces">The indeces.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task RemoveFromPlaylist(string playlistId, IEnumerable<int> indeces);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the playlists folder.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user identifier.</param>
|
||||
/// <returns>Folder.</returns>
|
||||
Folder GetPlaylistsFolder(string userId);
|
||||
|
||||
}
|
||||
}
|
||||
20
MediaBrowser.Controller/Playlists/Playlist.cs
Normal file
20
MediaBrowser.Controller/Playlists/Playlist.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Controller.Playlists
|
||||
{
|
||||
public class Playlist : Folder
|
||||
{
|
||||
public List<string> ItemIds { get; set; }
|
||||
|
||||
public Playlist()
|
||||
{
|
||||
ItemIds = new List<string>();
|
||||
}
|
||||
|
||||
public override IEnumerable<BaseItem> GetChildren(User user, bool includeLinkedChildren)
|
||||
{
|
||||
return base.GetChildren(user, includeLinkedChildren);
|
||||
}
|
||||
}
|
||||
}
|
||||
16
MediaBrowser.Controller/Playlists/PlaylistCreationOptions.cs
Normal file
16
MediaBrowser.Controller/Playlists/PlaylistCreationOptions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Controller.Playlists
|
||||
{
|
||||
public class PlaylistCreationOptions
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public List<string> ItemIdList { get; set; }
|
||||
|
||||
public PlaylistCreationOptions()
|
||||
{
|
||||
ItemIdList = new List<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user