mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-08 00:39:25 +01:00
add channel downloading settings
This commit is contained in:
@@ -4,12 +4,30 @@ namespace MediaBrowser.Model.Channels
|
||||
{
|
||||
public class ChannelFeatures
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier.</value>
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance can search.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance can search; otherwise, <c>false</c>.</value>
|
||||
public bool CanSearch { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance can get all media.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance can get all media; otherwise, <c>false</c>.</value>
|
||||
public bool CanGetAllMedia { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the media types.
|
||||
/// </summary>
|
||||
@@ -44,6 +62,12 @@ namespace MediaBrowser.Model.Channels
|
||||
/// <value><c>true</c> if this instance can filter; otherwise, <c>false</c>.</value>
|
||||
public bool CanFilter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance can download all media.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance can download all media; otherwise, <c>false</c>.</value>
|
||||
public bool CanDownloadAllMedia { get; set; }
|
||||
|
||||
public ChannelFeatures()
|
||||
{
|
||||
MediaTypes = new List<ChannelMediaType>();
|
||||
|
||||
@@ -20,4 +20,33 @@
|
||||
/// <value>The limit.</value>
|
||||
public int? Limit { get; set; }
|
||||
}
|
||||
|
||||
public class AllChannelMediaQuery
|
||||
{
|
||||
public string[] ChannelIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user identifier.
|
||||
/// </summary>
|
||||
/// <value>The user identifier.</value>
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Skips over a given number of items within the results. Use for paging.
|
||||
/// </summary>
|
||||
/// <value>The start index.</value>
|
||||
public int? StartIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The maximum number of items to return
|
||||
/// </summary>
|
||||
/// <value>The limit.</value>
|
||||
public int? Limit { get; set; }
|
||||
|
||||
public AllChannelMediaQuery()
|
||||
{
|
||||
ChannelIds = new string[] { };
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -303,5 +303,16 @@ namespace MediaBrowser.Model.Configuration
|
||||
public class ChannelOptions
|
||||
{
|
||||
public int? PreferredStreamingWidth { get; set; }
|
||||
|
||||
public string DownloadPath { get; set; }
|
||||
public int? MaxDownloadAge { get; set; }
|
||||
|
||||
public string[] DownloadingChannels { get; set; }
|
||||
|
||||
public ChannelOptions()
|
||||
{
|
||||
DownloadingChannels = new string[] { };
|
||||
MaxDownloadAge = 30;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
32
MediaBrowser.Model/Dto/ImageByNameInfo.cs
Normal file
32
MediaBrowser.Model/Dto/ImageByNameInfo.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
public class ImageByNameInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the theme.
|
||||
/// </summary>
|
||||
/// <value>The theme.</value>
|
||||
public string Theme { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the context.
|
||||
/// </summary>
|
||||
/// <value>The context.</value>
|
||||
public string Context { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the length of the file.
|
||||
/// </summary>
|
||||
/// <value>The length of the file.</value>
|
||||
public long FileLength { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the format.
|
||||
/// </summary>
|
||||
/// <value>The format.</value>
|
||||
public string Format { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Extensions;
|
||||
using MediaBrowser.Model.MediaInfo;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
@@ -35,11 +34,13 @@ namespace MediaBrowser.Model.Dto
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
public TransportStreamTimestamp? Timestamp { get; set; }
|
||||
public Dictionary<string, string> RequiredHttpHeaders { get; set; }
|
||||
|
||||
public MediaSourceInfo()
|
||||
{
|
||||
Formats = new List<string>();
|
||||
MediaStreams = new List<MediaStream>();
|
||||
RequiredHttpHeaders = new Dictionary<string, string>();
|
||||
}
|
||||
|
||||
public int? DefaultAudioStreamIndex { get; set; }
|
||||
|
||||
@@ -125,6 +125,7 @@
|
||||
<Compile Include="Dto\ChapterInfoDto.cs" />
|
||||
<Compile Include="Dto\GameSystemSummary.cs" />
|
||||
<Compile Include="Dto\IItemDto.cs" />
|
||||
<Compile Include="Dto\ImageByNameInfo.cs" />
|
||||
<Compile Include="Dto\ImageInfo.cs" />
|
||||
<Compile Include="Dto\ItemByNameCounts.cs" />
|
||||
<Compile Include="Dto\ItemCounts.cs" />
|
||||
|
||||
Reference in New Issue
Block a user