mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	3.2.12.11
This commit is contained in:
		
							parent
							
								
									d0424ac6df
								
							
						
					
					
						commit
						7ea3719a2d
					
				@ -2577,7 +2577,7 @@ namespace Emby.Server.Implementations.Library
 | 
				
			|||||||
                }).OrderBy(i => i.Path).ToList();
 | 
					                }).OrderBy(i => i.Path).ToList();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private static readonly string[] ExtrasSubfolderNames = new[] { "extras", "specials", "shorts", "scenes", "featurettes", "behind the scenes", "deleted scenes" };
 | 
					        private static readonly string[] ExtrasSubfolderNames = new[] { "extras", "specials", "shorts", "scenes", "featurettes", "behind the scenes", "deleted scenes", "interviews" };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public IEnumerable<Video> FindExtras(BaseItem owner, List<FileSystemMetadata> fileSystemChildren, IDirectoryService directoryService)
 | 
					        public IEnumerable<Video> FindExtras(BaseItem owner, List<FileSystemMetadata> fileSystemChildren, IDirectoryService directoryService)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
				
			|||||||
@ -30,8 +30,6 @@ namespace Emby.Server.Implementations.LiveTv
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            var now = DateTime.UtcNow;
 | 
					            var now = DateTime.UtcNow;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            var allowVideoStreamCopy = mediaSource.MediaStreams.Any(i => i.Type == MediaStreamType.Video && i.AllowStreamCopy);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            var info = await _mediaEncoder.GetMediaInfo(new MediaInfoRequest
 | 
					            var info = await _mediaEncoder.GetMediaInfo(new MediaInfoRequest
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                InputPath = mediaSource.Path,
 | 
					                InputPath = mediaSource.Path,
 | 
				
			||||||
@ -76,8 +74,6 @@ namespace Emby.Server.Implementations.LiveTv
 | 
				
			|||||||
            var videoStream = mediaSource.MediaStreams.FirstOrDefault(i => i.Type == MediaBrowser.Model.Entities.MediaStreamType.Video);
 | 
					            var videoStream = mediaSource.MediaStreams.FirstOrDefault(i => i.Type == MediaBrowser.Model.Entities.MediaStreamType.Video);
 | 
				
			||||||
            if (videoStream != null)
 | 
					            if (videoStream != null)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                videoStream.AllowStreamCopy = allowVideoStreamCopy;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                if (!videoStream.BitRate.HasValue)
 | 
					                if (!videoStream.BitRate.HasValue)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    var width = videoStream.Width ?? 1920;
 | 
					                    var width = videoStream.Width ?? 1920;
 | 
				
			||||||
 | 
				
			|||||||
@ -490,7 +490,6 @@ namespace Emby.Server.Implementations.LiveTv
 | 
				
			|||||||
                    if (stream.Type == MediaStreamType.Video)
 | 
					                    if (stream.Type == MediaStreamType.Video)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        stream.IsInterlaced = true;
 | 
					                        stream.IsInterlaced = true;
 | 
				
			||||||
                        stream.AllowStreamCopy = false;
 | 
					 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
@ -747,11 +747,6 @@ namespace MediaBrowser.Controller.MediaEncoding
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        public bool CanStreamCopyVideo(EncodingJobInfo state, MediaStream videoStream)
 | 
					        public bool CanStreamCopyVideo(EncodingJobInfo state, MediaStream videoStream)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (!videoStream.AllowStreamCopy)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                return false;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            var request = state.BaseRequest;
 | 
					            var request = state.BaseRequest;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (!request.AllowVideoStreamCopy)
 | 
					            if (!request.AllowVideoStreamCopy)
 | 
				
			||||||
@ -897,11 +892,6 @@ namespace MediaBrowser.Controller.MediaEncoding
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        public bool CanStreamCopyAudio(EncodingJobInfo state, MediaStream audioStream, List<string> supportedAudioCodecs)
 | 
					        public bool CanStreamCopyAudio(EncodingJobInfo state, MediaStream audioStream, List<string> supportedAudioCodecs)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (!audioStream.AllowStreamCopy)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                return false;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            var request = state.BaseRequest;
 | 
					            var request = state.BaseRequest;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (!request.AllowAudioStreamCopy)
 | 
					            if (!request.AllowAudioStreamCopy)
 | 
				
			||||||
 | 
				
			|||||||
@ -13,11 +13,6 @@ namespace MediaBrowser.Model.Entities
 | 
				
			|||||||
    [DebuggerDisplay("StreamType = {Type}")]
 | 
					    [DebuggerDisplay("StreamType = {Type}")]
 | 
				
			||||||
    public class MediaStream
 | 
					    public class MediaStream
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        public MediaStream()
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            AllowStreamCopy = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Gets or sets the codec.
 | 
					        /// Gets or sets the codec.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
@ -158,8 +153,6 @@ namespace MediaBrowser.Model.Entities
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        public bool? IsAVC { get; set; }
 | 
					        public bool? IsAVC { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public bool AllowStreamCopy { get; set; }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Gets or sets the channel layout.
 | 
					        /// Gets or sets the channel layout.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
 | 
				
			|||||||
@ -1,3 +1,3 @@
 | 
				
			|||||||
using System.Reflection;
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[assembly: AssemblyVersion("3.2.12.10")]
 | 
					[assembly: AssemblyVersion("3.2.12.11")]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user