Merge remote-tracking branch 'upstream/master' into search-rebased

This commit is contained in:
Shadowghost
2026-05-24 18:25:12 +02:00
211 changed files with 1529 additions and 2484 deletions

View File

@@ -1451,7 +1451,7 @@ namespace MediaBrowser.Model.Dlna
string? outputContainer,
MediaStreamProtocol? transcodingSubProtocol)
{
if (!subtitleStream.IsExternal && (playMethod != PlayMethod.Transcode || transcodingSubProtocol != MediaStreamProtocol.hls))
if (CanConsiderEmbedSubtitle(subtitleStream, playMethod, transcodingSubProtocol, outputContainer))
{
// Look for supported embedded subs of the same format
foreach (var profile in subtitleProfiles)
@@ -1540,6 +1540,19 @@ namespace MediaBrowser.Model.Dlna
return false;
}
private static bool CanConsiderEmbedSubtitle(MediaStream subtitleStream, PlayMethod playMethod, MediaStreamProtocol? transcodingSubProtocol, string? outputContainer)
{
if (subtitleStream.IsExternal)
{
return playMethod == PlayMethod.Transcode
&& transcodingSubProtocol != MediaStreamProtocol.hls
&& IsSubtitleEmbedSupported(outputContainer);
}
return playMethod != PlayMethod.Transcode
|| transcodingSubProtocol != MediaStreamProtocol.hls;
}
private static SubtitleProfile? GetExternalSubtitleProfile(MediaSourceInfo mediaSource, MediaStream subtitleStream, SubtitleProfile[] subtitleProfiles, PlayMethod playMethod, ITranscoderSupport transcoderSupport, bool allowConversion)
{
foreach (var profile in subtitleProfiles)

View File

@@ -50,7 +50,7 @@ namespace MediaBrowser.Model.Extensions
return 0;
})
.ThenByDescending(i => Math.Round(i.CommunityRating ?? 0, 1) )
.ThenByDescending(i => Math.Round(i.CommunityRating ?? 0, 1))
.ThenByDescending(i => i.VoteCount ?? 0);
}
}

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using Jellyfin.Database.Implementations.Entities;
using MediaBrowser.Model.MediaSegments;

View File

@@ -50,7 +50,7 @@ namespace MediaBrowser.Model.SyncPlay
/// </summary>
Seek = 8,
/// <summary>
/// <summary>
/// A user is signaling that playback is buffering.
/// </summary>
Buffer = 9,

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
namespace MediaBrowser.Model.SyncPlay;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
namespace MediaBrowser.Model.SyncPlay;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
namespace MediaBrowser.Model.SyncPlay;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
namespace MediaBrowser.Model.SyncPlay;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
namespace MediaBrowser.Model.SyncPlay;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
namespace MediaBrowser.Model.SyncPlay;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
namespace MediaBrowser.Model.SyncPlay;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
namespace MediaBrowser.Model.SyncPlay;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
namespace MediaBrowser.Model.SyncPlay;

View File

@@ -187,7 +187,7 @@ namespace MediaBrowser.Model.Users
[Required(AllowEmptyStrings = false)]
public string AuthenticationProviderId { get; set; }
[Required(AllowEmptyStrings= false)]
[Required(AllowEmptyStrings = false)]
public string PasswordResetProviderId { get; set; }
/// <summary>