mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-26 12:05:04 +01:00
add new mirror mode
This commit is contained in:
@@ -62,11 +62,10 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// <summary>
|
||||
/// Reports the capabilities.
|
||||
/// </summary>
|
||||
/// <param name="sessionId">The session identifier.</param>
|
||||
/// <param name="capabilities">The capabilities.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task ReportCapabilities(string sessionId, ClientCapabilities capabilities, CancellationToken cancellationToken);
|
||||
Task ReportCapabilities(ClientCapabilities capabilities, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the index of the game players.
|
||||
@@ -771,6 +770,13 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// <returns>System.String.</returns>
|
||||
string GetImageUrl(ProgramInfoDto item, ImageOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the subtitle URL.
|
||||
/// </summary>
|
||||
/// <param name="options">The options.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
string GetSubtitleUrl(SubtitleOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets an image url that can be used to download an image from the api
|
||||
/// </summary>
|
||||
|
||||
@@ -158,4 +158,19 @@
|
||||
/// <value>The device id.</value>
|
||||
public string DeviceId { get; set; }
|
||||
}
|
||||
|
||||
public class SubtitleOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the item identifier.
|
||||
/// </summary>
|
||||
/// <value>The item identifier.</value>
|
||||
public string ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the stream.</value>
|
||||
public int StreamIndex { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
@@ -81,6 +82,54 @@ namespace MediaBrowser.Model.Entities
|
||||
/// </summary>
|
||||
/// <value>The media version identifier.</value>
|
||||
public string MediaSourceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the premiere date.
|
||||
/// </summary>
|
||||
/// <value>The premiere date.</value>
|
||||
public DateTime? PremiereDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the production year.
|
||||
/// </summary>
|
||||
/// <value>The production year.</value>
|
||||
public int? ProductionYear { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index number.
|
||||
/// </summary>
|
||||
/// <value>The index number.</value>
|
||||
public int? IndexNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index number end.
|
||||
/// </summary>
|
||||
/// <value>The index number end.</value>
|
||||
public int? IndexNumberEnd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the parent index number.
|
||||
/// </summary>
|
||||
/// <value>The parent index number.</value>
|
||||
public int? ParentIndexNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the series.
|
||||
/// </summary>
|
||||
/// <value>The name of the series.</value>
|
||||
public string SeriesName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the album.
|
||||
/// </summary>
|
||||
/// <value>The album.</value>
|
||||
public string Album { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the artists.
|
||||
/// </summary>
|
||||
/// <value>The artists.</value>
|
||||
public List<string> Artists { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance has primary image.
|
||||
@@ -91,5 +140,10 @@ namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
get { return PrimaryImageTag.HasValue; }
|
||||
}
|
||||
|
||||
public BaseItemInfo()
|
||||
{
|
||||
Artists = new List<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ namespace MediaBrowser.Model.Session
|
||||
SetVolume = 22,
|
||||
SetAudioStreamIndex = 23,
|
||||
SetSubtitleStreamIndex = 24,
|
||||
ToggleFullscreen = 25
|
||||
ToggleFullscreen = 25,
|
||||
DisplayContent = 26
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,12 +164,6 @@ namespace MediaBrowser.Model.Session
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [supports remote control]; otherwise, <c>false</c>.</value>
|
||||
public bool SupportsRemoteControl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [supports navigation commands].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [supports navigation commands]; otherwise, <c>false</c>.</value>
|
||||
public bool SupportsNavigationControl { get; set; }
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user