mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-08 16:58:50 +01:00
Merge remote-tracking branch 'upstream/master' into search-rebased
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
using MediaBrowser.Model.MediaSegments;
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace MediaBrowser.Model.SyncPlay
|
||||
/// </summary>
|
||||
Seek = 8,
|
||||
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
/// A user is signaling that playback is buffering.
|
||||
/// </summary>
|
||||
Buffer = 9,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MediaBrowser.Model.SyncPlay;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user