mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
update portable projects
This commit is contained in:
@@ -85,7 +85,7 @@ namespace MediaBrowser.Controller
|
||||
/// <summary>
|
||||
/// Gets the local API URL.
|
||||
/// </summary>
|
||||
string GetLocalApiUrl(string ipAddress, bool isIpv6);
|
||||
string GetLocalApiUrl(IpAddressInfo address);
|
||||
|
||||
void LaunchUrl(string url);
|
||||
|
||||
|
||||
@@ -69,7 +69,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
// if the audio language is not understood by the user, load their preferred subs, if there are any
|
||||
if (!ContainsOrdinal(preferredLanguages, audioTrackLanguage))
|
||||
{
|
||||
stream = streams.Where(s => !s.IsForced).FirstOrDefault(s => ContainsOrdinal(preferredLanguages, s.Language));
|
||||
stream = streams.Where(s => !s.IsForced).FirstOrDefault(s => ContainsOrdinal(preferredLanguages, s.Language)) ??
|
||||
streams.FirstOrDefault(s => ContainsOrdinal(preferredLanguages, s.Language));
|
||||
}
|
||||
}
|
||||
else if (mode == SubtitlePlaybackMode.Always)
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace MediaBrowser.Controller.Net
|
||||
{
|
||||
public class AuthenticatedAttribute : Attribute, IHasRequestFilter, IAuthenticationAttributes
|
||||
{
|
||||
public IAuthService AuthService { get; set; }
|
||||
public static IAuthService AuthService { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the roles.
|
||||
@@ -26,7 +26,7 @@ namespace MediaBrowser.Controller.Net
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [allow before startup wizard]; otherwise, <c>false</c>.</value>
|
||||
public bool AllowBeforeStartupWizard { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The request filter is executed before the service.
|
||||
/// </summary>
|
||||
@@ -40,15 +40,6 @@ namespace MediaBrowser.Controller.Net
|
||||
AuthService.Authenticate(serviceRequest, this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A new shallow copy of this filter is used on every request.
|
||||
/// </summary>
|
||||
/// <returns>IHasRequestFilter.</returns>
|
||||
public IHasRequestFilter Copy()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Order in which Request Filters are executed.
|
||||
/// <0 Executed before global request filters
|
||||
@@ -60,7 +51,6 @@ namespace MediaBrowser.Controller.Net
|
||||
get { return 0; }
|
||||
}
|
||||
|
||||
|
||||
public IEnumerable<string> GetRoles()
|
||||
{
|
||||
return (Roles ?? string.Empty).Split(',')
|
||||
|
||||
Reference in New Issue
Block a user