mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:37:07 +00:00
Use helper function to compare guid (#10825)
This commit is contained in:
parent
484ccf7f28
commit
e7b8d45bbb
58 changed files with 249 additions and 184 deletions
|
|
@ -9,6 +9,7 @@ using System.Text.Json;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Jellyfin.Data.Enums;
|
||||
using Jellyfin.Extensions;
|
||||
using MediaBrowser.Common;
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Common.Extensions;
|
||||
|
|
@ -400,7 +401,7 @@ public sealed class TranscodeManager : ITranscodeManager, IDisposable
|
|||
|
||||
if (state.VideoRequest is not null && !EncodingHelper.IsCopyCodec(state.OutputVideoCodec))
|
||||
{
|
||||
var user = userId.Equals(default) ? null : _userManager.GetUserById(userId);
|
||||
var user = userId.IsEmpty() ? null : _userManager.GetUserById(userId);
|
||||
if (user is not null && !user.HasPermission(PermissionKind.EnableVideoPlaybackTranscoding))
|
||||
{
|
||||
this.OnTranscodeFailedToStart(outputPath, transcodingJobType, state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue