mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
parent
321c440739
commit
38f96af079
@ -101,7 +101,7 @@ namespace MediaBrowser.Api
|
|||||||
{
|
{
|
||||||
lock (_transcodingLocks)
|
lock (_transcodingLocks)
|
||||||
{
|
{
|
||||||
if (!_transcodingLocks.TryGetValue(outputPath, out var result))
|
if (!_transcodingLocks.TryGetValue(outputPath, out SemaphoreSlim result))
|
||||||
{
|
{
|
||||||
result = new SemaphoreSlim(1, 1);
|
result = new SemaphoreSlim(1, 1);
|
||||||
_transcodingLocks[outputPath] = result;
|
_transcodingLocks[outputPath] = result;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Api
|
namespace MediaBrowser.Api
|
||||||
{
|
{
|
||||||
public interface IHasDtoOptions : IHasItemFields
|
public interface IHasDtoOptions : IHasItemFields
|
||||||
|
@ -902,7 +902,7 @@ namespace MediaBrowser.Api.Library
|
|||||||
|
|
||||||
var dtoOptions = GetDtoOptions(_authContext, request);
|
var dtoOptions = GetDtoOptions(_authContext, request);
|
||||||
|
|
||||||
var parent = item.GetParent();
|
BaseItem parent = item.GetParent();
|
||||||
|
|
||||||
while (parent != null)
|
while (parent != null)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Common.Configuration
|
namespace MediaBrowser.Common.Configuration
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Channels
|
namespace MediaBrowser.Controller.Channels
|
||||||
{
|
{
|
||||||
public interface IHasCacheKey
|
public interface IHasCacheKey
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Connect
|
namespace MediaBrowser.Controller.Connect
|
||||||
{
|
{
|
||||||
public class UserLinkResult
|
public class UserLinkResult
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Drawing
|
namespace MediaBrowser.Controller.Drawing
|
||||||
{
|
{
|
||||||
public class ImageCollageOptions
|
public class ImageCollageOptions
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Entities.Audio
|
namespace MediaBrowser.Controller.Entities.Audio
|
||||||
{
|
{
|
||||||
public interface IHasAlbumArtist
|
public interface IHasAlbumArtist
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
using MediaBrowser.Model.Serialization;
|
using MediaBrowser.Model.Serialization;
|
||||||
|
|
||||||
namespace MediaBrowser.Controller.Entities
|
namespace MediaBrowser.Controller.Entities
|
||||||
|
@ -331,7 +331,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
foreach (var child in nonCachedChildren)
|
foreach (var child in nonCachedChildren)
|
||||||
{
|
{
|
||||||
if (currentChildren.TryGetValue(child.Id, out var currentChild))
|
if (currentChildren.TryGetValue(child.Id, out BaseItem currentChild))
|
||||||
{
|
{
|
||||||
validChildren.Add(currentChild);
|
validChildren.Add(currentChild);
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Entities
|
namespace MediaBrowser.Controller.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Entities
|
namespace MediaBrowser.Controller.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace MediaBrowser.Controller.Entities
|
namespace MediaBrowser.Controller.Entities
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Entities
|
namespace MediaBrowser.Controller.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Entities
|
namespace MediaBrowser.Controller.Entities
|
||||||
{
|
{
|
||||||
public interface ISupportsPlaceHolders
|
public interface ISupportsPlaceHolders
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Entities
|
namespace MediaBrowser.Controller.Entities
|
||||||
{
|
{
|
||||||
public enum SourceType
|
public enum SourceType
|
||||||
|
@ -64,9 +64,9 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
public int? GetYearValue()
|
public int? GetYearValue()
|
||||||
{
|
{
|
||||||
if (int.TryParse(Name, NumberStyles.Integer, CultureInfo.InvariantCulture, out var i))
|
if (int.TryParse(Name, NumberStyles.Integer, CultureInfo.InvariantCulture, out var year))
|
||||||
{
|
{
|
||||||
return i;
|
return year;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Library
|
namespace MediaBrowser.Controller.Library
|
||||||
{
|
{
|
||||||
public class DeleteOptions
|
public class DeleteOptions
|
||||||
|
@ -114,12 +114,15 @@ namespace MediaBrowser.Controller.LiveTv
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The episode number.</value>
|
/// <value>The episode number.</value>
|
||||||
public int? EpisodeNumber { get; set; }
|
public int? EpisodeNumber { get; set; }
|
||||||
|
|
||||||
public bool IsMovie { get; set; }
|
public bool IsMovie { get; set; }
|
||||||
|
|
||||||
public bool IsKids => Tags.Contains("Kids", StringComparer.OrdinalIgnoreCase);
|
public bool IsKids => Tags.Contains("Kids", StringComparer.OrdinalIgnoreCase);
|
||||||
|
|
||||||
public bool IsSports => Tags.Contains("Sports", StringComparer.OrdinalIgnoreCase);
|
public bool IsSports => Tags.Contains("Sports", StringComparer.OrdinalIgnoreCase);
|
||||||
|
|
||||||
public bool IsNews => Tags.Contains("News", StringComparer.OrdinalIgnoreCase);
|
public bool IsNews => Tags.Contains("News", StringComparer.OrdinalIgnoreCase);
|
||||||
|
|
||||||
public bool IsSeries { get; set; }
|
public bool IsSeries { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -133,10 +136,15 @@ namespace MediaBrowser.Controller.LiveTv
|
|||||||
public bool IsPremiere => Tags.Contains("Premiere", StringComparer.OrdinalIgnoreCase);
|
public bool IsPremiere => Tags.Contains("Premiere", StringComparer.OrdinalIgnoreCase);
|
||||||
|
|
||||||
public int? ProductionYear { get; set; }
|
public int? ProductionYear { get; set; }
|
||||||
|
|
||||||
public string EpisodeTitle { get; set; }
|
public string EpisodeTitle { get; set; }
|
||||||
|
|
||||||
public DateTime? OriginalAirDate { get; set; }
|
public DateTime? OriginalAirDate { get; set; }
|
||||||
|
|
||||||
public bool IsProgramSeries { get; set; }
|
public bool IsProgramSeries { get; set; }
|
||||||
|
|
||||||
public bool IsRepeat { get; set; }
|
public bool IsRepeat { get; set; }
|
||||||
|
|
||||||
public string HomePageUrl { get; set; }
|
public string HomePageUrl { get; set; }
|
||||||
public float? CommunityRating { get; set; }
|
public float? CommunityRating { get; set; }
|
||||||
public string OfficialRating { get; set; }
|
public string OfficialRating { get; set; }
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.MediaEncoding
|
namespace MediaBrowser.Controller.MediaEncoding
|
||||||
{
|
{
|
||||||
public class ImageEncodingOptions
|
public class ImageEncodingOptions
|
||||||
|
@ -25,7 +25,7 @@ namespace MediaBrowser.Controller.Providers
|
|||||||
|
|
||||||
public FileSystemMetadata[] GetFileSystemEntries(string path)
|
public FileSystemMetadata[] GetFileSystemEntries(string path)
|
||||||
{
|
{
|
||||||
if (!_cache.TryGetValue(path, out var entries))
|
if (!_cache.TryGetValue(path, out FileSystemMetadata[] entries))
|
||||||
{
|
{
|
||||||
//_logger.LogDebug("Getting files for " + path);
|
//_logger.LogDebug("Getting files for " + path);
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ namespace MediaBrowser.Controller.Providers
|
|||||||
|
|
||||||
public FileSystemMetadata GetFile(string path)
|
public FileSystemMetadata GetFile(string path)
|
||||||
{
|
{
|
||||||
if (!_fileCache.TryGetValue(path, out var file))
|
if (!_fileCache.TryGetValue(path, out FileSystemMetadata file))
|
||||||
{
|
{
|
||||||
file = _fileSystem.GetFileInfo(path);
|
file = _fileSystem.GetFileInfo(path);
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ namespace MediaBrowser.Controller.Providers
|
|||||||
|
|
||||||
public List<string> GetFilePaths(string path, bool clearCache)
|
public List<string> GetFilePaths(string path, bool clearCache)
|
||||||
{
|
{
|
||||||
if (clearCache || !_filePathCache.TryGetValue(path, out var result))
|
if (clearCache || !_filePathCache.TryGetValue(path, out List<string> result))
|
||||||
{
|
{
|
||||||
result = _fileSystem.GetFilePaths(path).ToList();
|
result = _fileSystem.GetFilePaths(path).ToList();
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Providers
|
namespace MediaBrowser.Controller.Providers
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Providers
|
namespace MediaBrowser.Controller.Providers
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Providers
|
namespace MediaBrowser.Controller.Providers
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
using MediaBrowser.Model.IO;
|
using MediaBrowser.Model.IO;
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Resolvers
|
namespace MediaBrowser.Controller.Resolvers
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Security
|
namespace MediaBrowser.Controller.Security
|
||||||
{
|
{
|
||||||
public interface IEncryptionManager
|
public interface IEncryptionManager
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Controller.Sync
|
namespace MediaBrowser.Controller.Sync
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -69,6 +69,7 @@ namespace MediaBrowser.LocalMetadata
|
|||||||
|
|
||||||
public string Name => XmlProviderUtils.Name;
|
public string Name => XmlProviderUtils.Name;
|
||||||
|
|
||||||
|
//After Nfo
|
||||||
public virtual int Order => 1;
|
public virtual int Order => 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ namespace MediaBrowser.LocalMetadata.Images
|
|||||||
return item is CollectionFolder && item.SupportsLocalMetadata;
|
return item is CollectionFolder && item.SupportsLocalMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Run after LocalImageProvider
|
||||||
public int Order => 1;
|
public int Order => 1;
|
||||||
|
|
||||||
public List<LocalImageInfo> GetImages(BaseItem item, IDirectoryService directoryService)
|
public List<LocalImageInfo> GetImages(BaseItem item, IDirectoryService directoryService)
|
||||||
|
@ -46,7 +46,7 @@ namespace MediaBrowser.LocalMetadata.Images
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
// Make sure this is last so that all other locations are scanned first
|
||||||
public int Order => 1000;
|
public int Order => 1000;
|
||||||
|
|
||||||
public List<LocalImageInfo> GetImages(BaseItem item, IDirectoryService directoryService)
|
public List<LocalImageInfo> GetImages(BaseItem item, IDirectoryService directoryService)
|
||||||
|
@ -96,7 +96,7 @@ namespace MediaBrowser.LocalMetadata.Images
|
|||||||
|
|
||||||
public List<LocalImageInfo> GetImages(BaseItem item, IEnumerable<string> paths, bool arePathsInMediaFolders, IDirectoryService directoryService)
|
public List<LocalImageInfo> GetImages(BaseItem item, IEnumerable<string> paths, bool arePathsInMediaFolders, IDirectoryService directoryService)
|
||||||
{
|
{
|
||||||
var files = paths.SelectMany(i => _fileSystem.GetFiles(i, BaseItem.SupportedImageExtensions, true, false));
|
IEnumerable<FileSystemMetadata> files = paths.SelectMany(i => _fileSystem.GetFiles(i, BaseItem.SupportedImageExtensions, true, false));
|
||||||
|
|
||||||
files = files
|
files = files
|
||||||
.OrderBy(i => Array.IndexOf(BaseItem.SupportedImageExtensions, i.Extension ?? string.Empty));
|
.OrderBy(i => Array.IndexOf(BaseItem.SupportedImageExtensions, i.Extension ?? string.Empty));
|
||||||
|
@ -676,7 +676,7 @@ namespace MediaBrowser.LocalMetadata.Parsers
|
|||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
string readerName = reader.Name;
|
string readerName = reader.Name;
|
||||||
if (_validProviderIds.TryGetValue(readerName, out var providerIdValue))
|
if (_validProviderIds.TryGetValue(readerName, out string providerIdValue))
|
||||||
{
|
{
|
||||||
var id = reader.ReadElementContentAsString();
|
var id = reader.ReadElementContentAsString();
|
||||||
if (!string.IsNullOrWhiteSpace(id))
|
if (!string.IsNullOrWhiteSpace(id))
|
||||||
|
@ -152,7 +152,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
|
|
||||||
private string GetProcessOutput(string path, string arguments)
|
private string GetProcessOutput(string path, string arguments)
|
||||||
{
|
{
|
||||||
var process = _processFactory.Create(new ProcessOptions
|
IProcess process = _processFactory.Create(new ProcessOptions
|
||||||
{
|
{
|
||||||
CreateNoWindow = true,
|
CreateNoWindow = true,
|
||||||
UseShellExecute = false,
|
UseShellExecute = false,
|
||||||
|
@ -1193,7 +1193,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
|
|
||||||
if (chapter.tags != null)
|
if (chapter.tags != null)
|
||||||
{
|
{
|
||||||
if (chapter.tags.TryGetValue("title", out var name))
|
if (chapter.tags.TryGetValue("title", out string name))
|
||||||
{
|
{
|
||||||
info.Name = name;
|
info.Name = name;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.ApiClient
|
namespace MediaBrowser.Model.ApiClient
|
||||||
{
|
{
|
||||||
public class ServerDiscoveryInfo
|
public class ServerDiscoveryInfo
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Branding
|
namespace MediaBrowser.Model.Branding
|
||||||
{
|
{
|
||||||
public class BrandingOptions
|
public class BrandingOptions
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Channels
|
namespace MediaBrowser.Model.Channels
|
||||||
{
|
{
|
||||||
public class ChannelInfo
|
public class ChannelInfo
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Configuration
|
namespace MediaBrowser.Model.Configuration
|
||||||
{
|
{
|
||||||
public class AccessSchedule
|
public class AccessSchedule
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Configuration
|
namespace MediaBrowser.Model.Configuration
|
||||||
{
|
{
|
||||||
public enum DynamicDayOfWeek
|
public enum DynamicDayOfWeek
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Configuration
|
namespace MediaBrowser.Model.Configuration
|
||||||
{
|
{
|
||||||
public class EncodingOptions
|
public class EncodingOptions
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Configuration
|
namespace MediaBrowser.Model.Configuration
|
||||||
{
|
{
|
||||||
public class FanartOptions
|
public class FanartOptions
|
||||||
|
@ -108,7 +108,7 @@ namespace MediaBrowser.Model.Configuration
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DefaultImageOptions.TryGetValue(Type, out var options))
|
if (DefaultImageOptions.TryGetValue(Type, out ImageOption[] options))
|
||||||
{
|
{
|
||||||
foreach (var i in options)
|
foreach (var i in options)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Configuration
|
namespace MediaBrowser.Model.Configuration
|
||||||
{
|
{
|
||||||
public class MetadataConfiguration
|
public class MetadataConfiguration
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Configuration
|
namespace MediaBrowser.Model.Configuration
|
||||||
{
|
{
|
||||||
public class XbmcMetadataOptions
|
public class XbmcMetadataOptions
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Connect
|
namespace MediaBrowser.Model.Connect
|
||||||
{
|
{
|
||||||
public class ConnectUser
|
public class ConnectUser
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Connect
|
namespace MediaBrowser.Model.Connect
|
||||||
{
|
{
|
||||||
public class ConnectUserQuery
|
public class ConnectUserQuery
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Connect
|
namespace MediaBrowser.Model.Connect
|
||||||
{
|
{
|
||||||
public enum UserLinkType
|
public enum UserLinkType
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Devices
|
namespace MediaBrowser.Model.Devices
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Devices
|
namespace MediaBrowser.Model.Devices
|
||||||
{
|
{
|
||||||
public class LocalFileInfo
|
public class LocalFileInfo
|
||||||
|
@ -31,7 +31,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
string dlnaflags = string.Format(";DLNA.ORG_FLAGS={0}",
|
string dlnaflags = string.Format(";DLNA.ORG_FLAGS={0}",
|
||||||
DlnaMaps.FlagsToString(flagValue));
|
DlnaMaps.FlagsToString(flagValue));
|
||||||
|
|
||||||
var mediaProfile = _profile.GetImageMediaProfile(container,
|
ResponseProfile mediaProfile = _profile.GetImageMediaProfile(container,
|
||||||
width,
|
width,
|
||||||
height);
|
height);
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
string dlnaflags = string.Format(";DLNA.ORG_FLAGS={0}",
|
string dlnaflags = string.Format(";DLNA.ORG_FLAGS={0}",
|
||||||
DlnaMaps.FlagsToString(flagValue));
|
DlnaMaps.FlagsToString(flagValue));
|
||||||
|
|
||||||
var mediaProfile = _profile.GetAudioMediaProfile(container,
|
ResponseProfile mediaProfile = _profile.GetAudioMediaProfile(container,
|
||||||
audioCodec,
|
audioCodec,
|
||||||
audioChannels,
|
audioChannels,
|
||||||
audioBitrate,
|
audioBitrate,
|
||||||
@ -148,7 +148,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
string dlnaflags = string.Format(";DLNA.ORG_FLAGS={0}",
|
string dlnaflags = string.Format(";DLNA.ORG_FLAGS={0}",
|
||||||
DlnaMaps.FlagsToString(flagValue));
|
DlnaMaps.FlagsToString(flagValue));
|
||||||
|
|
||||||
var mediaProfile = _profile.GetVideoMediaProfile(container,
|
ResponseProfile mediaProfile = _profile.GetVideoMediaProfile(container,
|
||||||
audioCodec,
|
audioCodec,
|
||||||
videoCodec,
|
videoCodec,
|
||||||
width,
|
width,
|
||||||
|
@ -191,7 +191,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
var conditionProcessor = new ConditionProcessor();
|
var conditionProcessor = new ConditionProcessor();
|
||||||
|
|
||||||
var anyOff = false;
|
var anyOff = false;
|
||||||
foreach (var c in i.Conditions)
|
foreach (ProfileCondition c in i.Conditions)
|
||||||
{
|
{
|
||||||
if (!conditionProcessor.IsAudioConditionSatisfied(GetModelProfileCondition(c), audioChannels, audioBitrate, audioSampleRate, audioBitDepth))
|
if (!conditionProcessor.IsAudioConditionSatisfied(GetModelProfileCondition(c), audioChannels, audioBitrate, audioSampleRate, audioBitDepth))
|
||||||
{
|
{
|
||||||
@ -304,7 +304,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
var conditionProcessor = new ConditionProcessor();
|
var conditionProcessor = new ConditionProcessor();
|
||||||
|
|
||||||
var anyOff = false;
|
var anyOff = false;
|
||||||
foreach (var c in i.Conditions)
|
foreach (ProfileCondition c in i.Conditions)
|
||||||
{
|
{
|
||||||
if (!conditionProcessor.IsVideoConditionSatisfied(GetModelProfileCondition(c), width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isInterlaced, refFrames, numVideoStreams, numAudioStreams, videoCodecTag, isAvc))
|
if (!conditionProcessor.IsVideoConditionSatisfied(GetModelProfileCondition(c), width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isInterlaced, refFrames, numVideoStreams, numAudioStreams, videoCodecTag, isAvc))
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Dlna
|
namespace MediaBrowser.Model.Dlna
|
||||||
{
|
{
|
||||||
public class DeviceProfileInfo
|
public class DeviceProfileInfo
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Dlna
|
namespace MediaBrowser.Model.Dlna
|
||||||
{
|
{
|
||||||
public enum MediaFormatProfile
|
public enum MediaFormatProfile
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Dlna
|
namespace MediaBrowser.Model.Dlna
|
||||||
{
|
{
|
||||||
public enum PlaybackErrorCode
|
public enum PlaybackErrorCode
|
||||||
|
@ -32,7 +32,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
ValidateAudioInput(options);
|
ValidateAudioInput(options);
|
||||||
|
|
||||||
var mediaSources = new List<MediaSourceInfo>();
|
var mediaSources = new List<MediaSourceInfo>();
|
||||||
foreach (var i in options.MediaSources)
|
foreach (MediaSourceInfo i in options.MediaSources)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(options.MediaSourceId) ||
|
if (string.IsNullOrEmpty(options.MediaSourceId) ||
|
||||||
StringHelper.EqualsIgnoreCase(i.Id, options.MediaSourceId))
|
StringHelper.EqualsIgnoreCase(i.Id, options.MediaSourceId))
|
||||||
@ -42,16 +42,16 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
}
|
}
|
||||||
|
|
||||||
var streams = new List<StreamInfo>();
|
var streams = new List<StreamInfo>();
|
||||||
foreach (var i in mediaSources)
|
foreach (MediaSourceInfo i in mediaSources)
|
||||||
{
|
{
|
||||||
var streamInfo = BuildAudioItem(i, options);
|
StreamInfo streamInfo = BuildAudioItem(i, options);
|
||||||
if (streamInfo != null)
|
if (streamInfo != null)
|
||||||
{
|
{
|
||||||
streams.Add(streamInfo);
|
streams.Add(streamInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var stream in streams)
|
foreach (StreamInfo stream in streams)
|
||||||
{
|
{
|
||||||
stream.DeviceId = options.DeviceId;
|
stream.DeviceId = options.DeviceId;
|
||||||
stream.DeviceProfileId = options.Profile.Id;
|
stream.DeviceProfileId = options.Profile.Id;
|
||||||
@ -65,7 +65,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
ValidateInput(options);
|
ValidateInput(options);
|
||||||
|
|
||||||
var mediaSources = new List<MediaSourceInfo>();
|
var mediaSources = new List<MediaSourceInfo>();
|
||||||
foreach (var i in options.MediaSources)
|
foreach (MediaSourceInfo i in options.MediaSources)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(options.MediaSourceId) ||
|
if (string.IsNullOrEmpty(options.MediaSourceId) ||
|
||||||
StringHelper.EqualsIgnoreCase(i.Id, options.MediaSourceId))
|
StringHelper.EqualsIgnoreCase(i.Id, options.MediaSourceId))
|
||||||
@ -75,7 +75,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
}
|
}
|
||||||
|
|
||||||
var streams = new List<StreamInfo>();
|
var streams = new List<StreamInfo>();
|
||||||
foreach (var i in mediaSources)
|
foreach (MediaSourceInfo i in mediaSources)
|
||||||
{
|
{
|
||||||
var streamInfo = BuildVideoItem(i, options);
|
var streamInfo = BuildVideoItem(i, options);
|
||||||
if (streamInfo != null)
|
if (streamInfo != null)
|
||||||
@ -84,7 +84,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var stream in streams)
|
foreach (StreamInfo stream in streams)
|
||||||
{
|
{
|
||||||
stream.DeviceId = options.DeviceId;
|
stream.DeviceId = options.DeviceId;
|
||||||
stream.DeviceProfileId = options.Profile.Id;
|
stream.DeviceProfileId = options.Profile.Id;
|
||||||
@ -97,7 +97,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
{
|
{
|
||||||
var sorted = SortMediaSources(streams, maxBitrate);
|
var sorted = SortMediaSources(streams, maxBitrate);
|
||||||
|
|
||||||
foreach (var stream in sorted)
|
foreach (StreamInfo stream in sorted)
|
||||||
{
|
{
|
||||||
return stream;
|
return stream;
|
||||||
}
|
}
|
||||||
@ -333,7 +333,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
if (i.Type == CodecType.Audio && i.ContainsAnyCodec(audioCodec, item.Container))
|
if (i.Type == CodecType.Audio && i.ContainsAnyCodec(audioCodec, item.Container))
|
||||||
{
|
{
|
||||||
bool applyConditions = true;
|
bool applyConditions = true;
|
||||||
foreach (var applyCondition in i.ApplyConditions)
|
foreach (ProfileCondition applyCondition in i.ApplyConditions)
|
||||||
{
|
{
|
||||||
if (!conditionProcessor.IsAudioConditionSatisfied(applyCondition, inputAudioChannels, inputAudioBitrate, inputAudioSampleRate, inputAudioBitDepth))
|
if (!conditionProcessor.IsAudioConditionSatisfied(applyCondition, inputAudioChannels, inputAudioBitrate, inputAudioSampleRate, inputAudioBitDepth))
|
||||||
{
|
{
|
||||||
@ -345,7 +345,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
|
|
||||||
if (applyConditions)
|
if (applyConditions)
|
||||||
{
|
{
|
||||||
foreach (var c in i.Conditions)
|
foreach (ProfileCondition c in i.Conditions)
|
||||||
{
|
{
|
||||||
conditions.Add(c);
|
conditions.Add(c);
|
||||||
}
|
}
|
||||||
@ -354,7 +354,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool all = true;
|
bool all = true;
|
||||||
foreach (var c in conditions)
|
foreach (ProfileCondition c in conditions)
|
||||||
{
|
{
|
||||||
if (!conditionProcessor.IsAudioConditionSatisfied(c, inputAudioChannels, inputAudioBitrate, inputAudioSampleRate, inputAudioBitDepth))
|
if (!conditionProcessor.IsAudioConditionSatisfied(c, inputAudioChannels, inputAudioBitrate, inputAudioSampleRate, inputAudioBitDepth))
|
||||||
{
|
{
|
||||||
@ -431,7 +431,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
|
|
||||||
if (applyConditions)
|
if (applyConditions)
|
||||||
{
|
{
|
||||||
foreach (var c in i.Conditions)
|
foreach (ProfileCondition c in i.Conditions)
|
||||||
{
|
{
|
||||||
audioTranscodingConditions.Add(c);
|
audioTranscodingConditions.Add(c);
|
||||||
}
|
}
|
||||||
@ -811,7 +811,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
if (i.Type == CodecType.Video && i.ContainsAnyCodec(transcodingProfile.VideoCodec, transcodingProfile.Container))
|
if (i.Type == CodecType.Video && i.ContainsAnyCodec(transcodingProfile.VideoCodec, transcodingProfile.Container))
|
||||||
{
|
{
|
||||||
bool applyConditions = true;
|
bool applyConditions = true;
|
||||||
foreach (var applyCondition in i.ApplyConditions)
|
foreach (ProfileCondition applyCondition in i.ApplyConditions)
|
||||||
{
|
{
|
||||||
int? width = videoStream == null ? null : videoStream.Width;
|
int? width = videoStream == null ? null : videoStream.Width;
|
||||||
int? height = videoStream == null ? null : videoStream.Height;
|
int? height = videoStream == null ? null : videoStream.Height;
|
||||||
@ -867,7 +867,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
if (i.Type == CodecType.VideoAudio && i.ContainsAnyCodec(transcodingProfile.AudioCodec, transcodingProfile.Container))
|
if (i.Type == CodecType.VideoAudio && i.ContainsAnyCodec(transcodingProfile.AudioCodec, transcodingProfile.Container))
|
||||||
{
|
{
|
||||||
bool applyConditions = true;
|
bool applyConditions = true;
|
||||||
foreach (var applyCondition in i.ApplyConditions)
|
foreach (ProfileCondition applyCondition in i.ApplyConditions)
|
||||||
{
|
{
|
||||||
bool? isSecondaryAudio = audioStream == null ? null : item.IsSecondaryAudio(audioStream);
|
bool? isSecondaryAudio = audioStream == null ? null : item.IsSecondaryAudio(audioStream);
|
||||||
int? inputAudioBitrate = audioStream == null ? null : audioStream.BitRate;
|
int? inputAudioBitrate = audioStream == null ? null : audioStream.BitRate;
|
||||||
@ -997,7 +997,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
bool isEligibleForDirectPlay,
|
bool isEligibleForDirectPlay,
|
||||||
bool isEligibleForDirectStream)
|
bool isEligibleForDirectStream)
|
||||||
{
|
{
|
||||||
var profile = options.Profile;
|
DeviceProfile profile = options.Profile;
|
||||||
|
|
||||||
if (options.ForceDirectPlay)
|
if (options.ForceDirectPlay)
|
||||||
{
|
{
|
||||||
@ -1071,7 +1071,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
int? numVideoStreams = mediaSource.GetStreamCount(MediaStreamType.Video);
|
int? numVideoStreams = mediaSource.GetStreamCount(MediaStreamType.Video);
|
||||||
|
|
||||||
// Check container conditions
|
// Check container conditions
|
||||||
foreach (var i in conditions)
|
foreach (ProfileCondition i in conditions)
|
||||||
{
|
{
|
||||||
if (!conditionProcessor.IsVideoConditionSatisfied(i, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isInterlaced, refFrames, numVideoStreams, numAudioStreams, videoCodecTag, isAvc))
|
if (!conditionProcessor.IsVideoConditionSatisfied(i, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isInterlaced, refFrames, numVideoStreams, numAudioStreams, videoCodecTag, isAvc))
|
||||||
{
|
{
|
||||||
@ -1094,7 +1094,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
if (i.Type == CodecType.Video && i.ContainsAnyCodec(videoCodec, container))
|
if (i.Type == CodecType.Video && i.ContainsAnyCodec(videoCodec, container))
|
||||||
{
|
{
|
||||||
bool applyConditions = true;
|
bool applyConditions = true;
|
||||||
foreach (var applyCondition in i.ApplyConditions)
|
foreach (ProfileCondition applyCondition in i.ApplyConditions)
|
||||||
{
|
{
|
||||||
if (!conditionProcessor.IsVideoConditionSatisfied(applyCondition, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isInterlaced, refFrames, numVideoStreams, numAudioStreams, videoCodecTag, isAvc))
|
if (!conditionProcessor.IsVideoConditionSatisfied(applyCondition, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isInterlaced, refFrames, numVideoStreams, numAudioStreams, videoCodecTag, isAvc))
|
||||||
{
|
{
|
||||||
@ -1106,7 +1106,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
|
|
||||||
if (applyConditions)
|
if (applyConditions)
|
||||||
{
|
{
|
||||||
foreach (var c in i.Conditions)
|
foreach (ProfileCondition c in i.Conditions)
|
||||||
{
|
{
|
||||||
conditions.Add(c);
|
conditions.Add(c);
|
||||||
}
|
}
|
||||||
@ -1114,7 +1114,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var i in conditions)
|
foreach (ProfileCondition i in conditions)
|
||||||
{
|
{
|
||||||
if (!conditionProcessor.IsVideoConditionSatisfied(i, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isInterlaced, refFrames, numVideoStreams, numAudioStreams, videoCodecTag, isAvc))
|
if (!conditionProcessor.IsVideoConditionSatisfied(i, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isInterlaced, refFrames, numVideoStreams, numAudioStreams, videoCodecTag, isAvc))
|
||||||
{
|
{
|
||||||
@ -1141,7 +1141,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
if (i.Type == CodecType.VideoAudio && i.ContainsAnyCodec(audioCodec, container))
|
if (i.Type == CodecType.VideoAudio && i.ContainsAnyCodec(audioCodec, container))
|
||||||
{
|
{
|
||||||
bool applyConditions = true;
|
bool applyConditions = true;
|
||||||
foreach (var applyCondition in i.ApplyConditions)
|
foreach (ProfileCondition applyCondition in i.ApplyConditions)
|
||||||
{
|
{
|
||||||
if (!conditionProcessor.IsVideoAudioConditionSatisfied(applyCondition, audioChannels, audioBitrate, audioSampleRate, audioBitDepth, audioProfile, isSecondaryAudio))
|
if (!conditionProcessor.IsVideoAudioConditionSatisfied(applyCondition, audioChannels, audioBitrate, audioSampleRate, audioBitDepth, audioProfile, isSecondaryAudio))
|
||||||
{
|
{
|
||||||
@ -1153,7 +1153,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
|
|
||||||
if (applyConditions)
|
if (applyConditions)
|
||||||
{
|
{
|
||||||
foreach (var c in i.Conditions)
|
foreach (ProfileCondition c in i.Conditions)
|
||||||
{
|
{
|
||||||
conditions.Add(c);
|
conditions.Add(c);
|
||||||
}
|
}
|
||||||
@ -1161,7 +1161,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var i in conditions)
|
foreach (ProfileCondition i in conditions)
|
||||||
{
|
{
|
||||||
if (!conditionProcessor.IsVideoAudioConditionSatisfied(i, audioChannels, audioBitrate, audioSampleRate, audioBitDepth, audioProfile, isSecondaryAudio))
|
if (!conditionProcessor.IsVideoAudioConditionSatisfied(i, audioChannels, audioBitrate, audioSampleRate, audioBitDepth, audioProfile, isSecondaryAudio))
|
||||||
{
|
{
|
||||||
@ -1466,7 +1466,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
|
|
||||||
private void ApplyTranscodingConditions(StreamInfo item, IEnumerable<ProfileCondition> conditions, string qualifier, bool enableQualifiedConditions, bool enableNonQualifiedConditions)
|
private void ApplyTranscodingConditions(StreamInfo item, IEnumerable<ProfileCondition> conditions, string qualifier, bool enableQualifiedConditions, bool enableNonQualifiedConditions)
|
||||||
{
|
{
|
||||||
foreach (var condition in conditions)
|
foreach (ProfileCondition condition in conditions)
|
||||||
{
|
{
|
||||||
string value = condition.Value;
|
string value = condition.Value;
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
}
|
}
|
||||||
|
|
||||||
var list = new List<string>();
|
var list = new List<string>();
|
||||||
foreach (var pair in BuildParams(this, accessToken))
|
foreach (NameValuePair pair in BuildParams(this, accessToken))
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(pair.Value))
|
if (string.IsNullOrEmpty(pair.Value))
|
||||||
{
|
{
|
||||||
@ -349,7 +349,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
var newList = new List<SubtitleStreamInfo>();
|
var newList = new List<SubtitleStreamInfo>();
|
||||||
|
|
||||||
// First add the selected track
|
// First add the selected track
|
||||||
foreach (var stream in list)
|
foreach (SubtitleStreamInfo stream in list)
|
||||||
{
|
{
|
||||||
if (stream.DeliveryMethod == SubtitleDeliveryMethod.External)
|
if (stream.DeliveryMethod == SubtitleDeliveryMethod.External)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Drawing
|
namespace MediaBrowser.Model.Drawing
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Drawing
|
namespace MediaBrowser.Model.Drawing
|
||||||
{
|
{
|
||||||
public enum ImageOrientation
|
public enum ImageOrientation
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Dto
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
public interface IHasServerId
|
public interface IHasServerId
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Dto
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Dto
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Dto
|
namespace MediaBrowser.Model.Dto
|
||||||
{
|
{
|
||||||
public class NameValuePair
|
public class NameValuePair
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
public class EmptyRequestResult
|
public class EmptyRequestResult
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
public enum ExtraType
|
public enum ExtraType
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
public class MediaUrl
|
public class MediaUrl
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -48,7 +48,7 @@ namespace MediaBrowser.Model.Entities
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
instance.ProviderIds.TryGetValue(name, out var id);
|
instance.ProviderIds.TryGetValue(name, out string id);
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
public enum Video3DFormat
|
public enum Video3DFormat
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Globalization
|
namespace MediaBrowser.Model.Globalization
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.IO
|
namespace MediaBrowser.Model.IO
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.IO
|
namespace MediaBrowser.Model.IO
|
||||||
{
|
{
|
||||||
public interface IShortcutHandler
|
public interface IShortcutHandler
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.IO
|
namespace MediaBrowser.Model.IO
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Library
|
namespace MediaBrowser.Model.Library
|
||||||
{
|
{
|
||||||
public enum PlayAccess
|
public enum PlayAccess
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.LiveTv
|
namespace MediaBrowser.Model.LiveTv
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.LiveTv
|
namespace MediaBrowser.Model.LiveTv
|
||||||
{
|
{
|
||||||
public enum RecordingStatus
|
public enum RecordingStatus
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.MediaInfo
|
namespace MediaBrowser.Model.MediaInfo
|
||||||
{
|
{
|
||||||
public class Container
|
public class Container
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.MediaInfo
|
namespace MediaBrowser.Model.MediaInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.MediaInfo
|
namespace MediaBrowser.Model.MediaInfo
|
||||||
{
|
{
|
||||||
public class SubtitleTrackEvent
|
public class SubtitleTrackEvent
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Net
|
namespace MediaBrowser.Model.Net
|
||||||
|
@ -132,7 +132,7 @@ namespace MediaBrowser.Model.Net
|
|||||||
|
|
||||||
var ext = Path.GetExtension(path) ?? string.Empty;
|
var ext = Path.GetExtension(path) ?? string.Empty;
|
||||||
|
|
||||||
if (MimeTypeLookup.TryGetValue(ext, out var result))
|
if (MimeTypeLookup.TryGetValue(ext, out string result))
|
||||||
{
|
{
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -338,7 +338,7 @@ namespace MediaBrowser.Model.Net
|
|||||||
// handle text/html; charset=UTF-8
|
// handle text/html; charset=UTF-8
|
||||||
mimeType = mimeType.Split(';')[0];
|
mimeType = mimeType.Split(';')[0];
|
||||||
|
|
||||||
if (ExtensionLookup.TryGetValue(mimeType, out var result))
|
if (ExtensionLookup.TryGetValue(mimeType, out string result))
|
||||||
{
|
{
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Net
|
namespace MediaBrowser.Model.Net
|
||||||
{
|
{
|
||||||
public class NetworkShare
|
public class NetworkShare
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Net
|
namespace MediaBrowser.Model.Net
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Net
|
namespace MediaBrowser.Model.Net
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Net
|
namespace MediaBrowser.Model.Net
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Notifications
|
namespace MediaBrowser.Model.Notifications
|
||||||
{
|
{
|
||||||
public enum NotificationLevel
|
public enum NotificationLevel
|
||||||
|
@ -77,7 +77,7 @@ namespace MediaBrowser.Model.Notifications
|
|||||||
|
|
||||||
public NotificationOption GetOptions(string type)
|
public NotificationOption GetOptions(string type)
|
||||||
{
|
{
|
||||||
foreach (var i in Options)
|
foreach (NotificationOption i in Options)
|
||||||
{
|
{
|
||||||
if (StringHelper.EqualsIgnoreCase(type, i.Type)) return i;
|
if (StringHelper.EqualsIgnoreCase(type, i.Type)) return i;
|
||||||
}
|
}
|
||||||
@ -86,14 +86,14 @@ namespace MediaBrowser.Model.Notifications
|
|||||||
|
|
||||||
public bool IsEnabled(string type)
|
public bool IsEnabled(string type)
|
||||||
{
|
{
|
||||||
var opt = GetOptions(type);
|
NotificationOption opt = GetOptions(type);
|
||||||
|
|
||||||
return opt != null && opt.Enabled;
|
return opt != null && opt.Enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsServiceEnabled(string service, string notificationType)
|
public bool IsServiceEnabled(string service, string notificationType)
|
||||||
{
|
{
|
||||||
var opt = GetOptions(notificationType);
|
NotificationOption opt = GetOptions(notificationType);
|
||||||
|
|
||||||
return opt == null ||
|
return opt == null ||
|
||||||
!ListHelper.ContainsIgnoreCase(opt.DisabledServices, service);
|
!ListHelper.ContainsIgnoreCase(opt.DisabledServices, service);
|
||||||
@ -101,7 +101,7 @@ namespace MediaBrowser.Model.Notifications
|
|||||||
|
|
||||||
public bool IsEnabledToMonitorUser(string type, Guid userId)
|
public bool IsEnabledToMonitorUser(string type, Guid userId)
|
||||||
{
|
{
|
||||||
var opt = GetOptions(type);
|
NotificationOption opt = GetOptions(type);
|
||||||
|
|
||||||
return opt != null && opt.Enabled &&
|
return opt != null && opt.Enabled &&
|
||||||
!ListHelper.ContainsIgnoreCase(opt.DisabledMonitorUsers, userId.ToString(""));
|
!ListHelper.ContainsIgnoreCase(opt.DisabledMonitorUsers, userId.ToString(""));
|
||||||
@ -109,7 +109,7 @@ namespace MediaBrowser.Model.Notifications
|
|||||||
|
|
||||||
public bool IsEnabledToSendToUser(string type, string userId, UserPolicy userPolicy)
|
public bool IsEnabledToSendToUser(string type, string userId, UserPolicy userPolicy)
|
||||||
{
|
{
|
||||||
var opt = GetOptions(type);
|
NotificationOption opt = GetOptions(type);
|
||||||
|
|
||||||
if (opt != null && opt.Enabled)
|
if (opt != null && opt.Enabled)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Playlists
|
namespace MediaBrowser.Model.Playlists
|
||||||
{
|
{
|
||||||
public class PlaylistCreationResult
|
public class PlaylistCreationResult
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Plugins
|
namespace MediaBrowser.Model.Plugins
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Providers
|
namespace MediaBrowser.Model.Providers
|
||||||
{
|
{
|
||||||
public class ExternalIdInfo
|
public class ExternalIdInfo
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
namespace MediaBrowser.Model.Querying
|
namespace MediaBrowser.Model.Querying
|
||||||
{
|
{
|
||||||
public class EpisodeQuery
|
public class EpisodeQuery
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user