update merge

This commit is contained in:
Luke Pulverenti 2015-09-20 13:28:32 -04:00
parent 543cf723ef
commit 25c37e40ad
4 changed files with 19 additions and 19 deletions

View File

@ -104,4 +104,4 @@ namespace MediaBrowser.Common.ScheduledTasks
} }
} }
} }
} }

View File

@ -157,7 +157,7 @@ namespace MediaBrowser.Model.Dlna
if (all) if (all)
{ {
if (item.Protocol == MediaProtocol.File && if (item.Protocol == MediaProtocol.File &&
directPlayMethods.Contains(PlayMethod.DirectPlay) && directPlayMethods.Contains(PlayMethod.DirectPlay) &&
_localPlayer.CanAccessFile(item.Path)) _localPlayer.CanAccessFile(item.Path))
{ {
playlistItem.PlayMethod = PlayMethod.DirectPlay; playlistItem.PlayMethod = PlayMethod.DirectPlay;
@ -288,7 +288,7 @@ namespace MediaBrowser.Model.Dlna
{ {
_logger.Debug("Profile: {0}, No direct play profiles found for Path: {1}", _logger.Debug("Profile: {0}, No direct play profiles found for Path: {1}",
options.Profile.Name ?? "Unknown Profile", options.Profile.Name ?? "Unknown Profile",
item.Path ?? "Unknown path"); item.Path ?? "Unknown path");
} }
return playMethods; return playMethods;
@ -306,7 +306,7 @@ namespace MediaBrowser.Model.Dlna
{ {
highestScore = stream.Score.Value; highestScore = stream.Score.Value;
} }
} }
} }
List<MediaStream> topStreams = new List<MediaStream>(); List<MediaStream> topStreams = new List<MediaStream>();
@ -540,8 +540,8 @@ namespace MediaBrowser.Model.Dlna
{ {
_logger.Debug("Profile: {0}, No direct play profiles found for Path: {1}", _logger.Debug("Profile: {0}, No direct play profiles found for Path: {1}",
profile.Name ?? "Unknown Profile", profile.Name ?? "Unknown Profile",
mediaSource.Path ?? "Unknown path"); mediaSource.Path ?? "Unknown path");
return null; return null;
} }
@ -658,7 +658,7 @@ namespace MediaBrowser.Model.Dlna
if (!conditionProcessor.IsVideoAudioConditionSatisfied(i, audioChannels, audioBitrate, audioProfile, isSecondaryAudio)) if (!conditionProcessor.IsVideoAudioConditionSatisfied(i, audioChannels, audioBitrate, audioProfile, isSecondaryAudio))
{ {
LogConditionFailure(profile, "VideoAudioCodecProfile", i, mediaSource); LogConditionFailure(profile, "VideoAudioCodecProfile", i, mediaSource);
return null; return null;
} }
} }
@ -725,7 +725,7 @@ namespace MediaBrowser.Model.Dlna
public static SubtitleProfile GetSubtitleProfile(MediaStream subtitleStream, SubtitleProfile[] subtitleProfiles, EncodingContext context, PlayMethod playMethod) public static SubtitleProfile GetSubtitleProfile(MediaStream subtitleStream, SubtitleProfile[] subtitleProfiles, EncodingContext context, PlayMethod playMethod)
{ {
if (playMethod != PlayMethod.Transcode && !subtitleStream.IsExternal) if (playMethod != PlayMethod.Transcode && !subtitleStream.IsExternal)
{ {
// Look for supported embedded subs // Look for supported embedded subs
foreach (SubtitleProfile profile in subtitleProfiles) foreach (SubtitleProfile profile in subtitleProfiles)
@ -749,11 +749,11 @@ namespace MediaBrowser.Model.Dlna
// Look for an external profile that matches the stream type (text/graphical) // Look for an external profile that matches the stream type (text/graphical)
foreach (SubtitleProfile profile in subtitleProfiles) foreach (SubtitleProfile profile in subtitleProfiles)
{ {
if (profile.Method != SubtitleDeliveryMethod.External) if (profile.Method != SubtitleDeliveryMethod.External)
{ {
continue; continue;
} }
if (!profile.SupportsLanguage(subtitleStream.Language)) if (!profile.SupportsLanguage(subtitleStream.Language))
{ {
@ -762,9 +762,9 @@ namespace MediaBrowser.Model.Dlna
if (subtitleStream.IsTextSubtitleStream == MediaStream.IsTextFormat(profile.Format)) if (subtitleStream.IsTextSubtitleStream == MediaStream.IsTextFormat(profile.Format))
{ {
bool requiresConversion = !StringHelper.EqualsIgnoreCase(subtitleStream.Codec, profile.Format); bool requiresConversion = !StringHelper.EqualsIgnoreCase(subtitleStream.Codec, profile.Format);
if (subtitleStream.IsTextSubtitleStream || !requiresConversion) if (subtitleStream.IsTextSubtitleStream || !requiresConversion)
{ {
if (subtitleStream.SupportsExternalStream) if (subtitleStream.SupportsExternalStream)
{ {
@ -1042,4 +1042,4 @@ namespace MediaBrowser.Model.Dlna
return true; return true;
} }
} }
} }

View File

@ -321,4 +321,4 @@ namespace MediaBrowser.Model.Net
return null; return null;
} }
} }
} }

View File

@ -125,7 +125,7 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies
} }
else if (IsIgnored(child.Name)) else if (IsIgnored(child.Name))
{ {
} }
else else
{ {
@ -515,4 +515,4 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Movies
return !validCollectionTypes.Contains(collectionType ?? string.Empty, StringComparer.OrdinalIgnoreCase); return !validCollectionTypes.Contains(collectionType ?? string.Empty, StringComparer.OrdinalIgnoreCase);
} }
} }
} }