The Free Software Media System - Server Backend & API
back port model changes
Luke Pulverenti2420f24ab1f1
diff --git a/MediaBrowser.Model/Configuration/ChapterOptions.cs b/MediaBrowser.Model/Configuration/ChapterOptions.csindex fd39307040..f9ff6b4f9f 100644--- a/MediaBrowser.Model/Configuration/ChapterOptions.cs+++ b/MediaBrowser.Model/Configuration/ChapterOptions.cs@@ -13,11 +13,10 @@public string[] DisabledFetchers { get; set; }public bool ExtractDuringLibraryScan { get; set; }-+public ChapterOptions(){DownloadMovieChapters = true;- ExtractDuringLibraryScan = true;DisabledFetchers = new string[] { };FetcherOrder = new string[] { };diff --git a/MediaBrowser.Model/Dlna/StreamBuilder.cs b/MediaBrowser.Model/Dlna/StreamBuilder.csindex 1834e24fec..d451fe8a0e 100644--- a/MediaBrowser.Model/Dlna/StreamBuilder.cs+++ b/MediaBrowser.Model/Dlna/StreamBuilder.cs@@ -525,6 +525,15 @@ namespace MediaBrowser.Model.Dlnabool isEligibleForDirectPlay,bool isEligibleForDirectStream){+ if (videoStream == null)+ {+ _logger.Info("Profile: {0}, Cannot direct stream with no known video stream. Path: {1}",+ profile.Name ?? "Unknown Profile",+ mediaSource.Path ?? "Unknown path");++ return null;+ }+// See if it can be direct playedDirectPlayProfile directPlay = null;foreach (DirectPlayProfile i in profile.DirectPlayProfiles)diff --git a/MediaBrowser.Model/Dlna/StreamInfo.cs b/MediaBrowser.Model/Dlna/StreamInfo.csindex 50d1cdfc84..9794729481 100644--- a/MediaBrowser.Model/Dlna/StreamInfo.cs+++ b/MediaBrowser.Model/Dlna/StreamInfo.cs@@ -216,17 +216,6 @@ namespace MediaBrowser.Model.Dlnalist.Add(new NameValuePair("Level", item.VideoLevel.HasValue ? StringHelper.ToStringCultureInvariant(item.VideoLevel.Value) : string.Empty));- if (isDlna)- {- // The player may see it as separate resources due to url differences- // And then try to request more than one at playback- list.Add(new NameValuePair("ClientTime", string.Empty));- }- else- {- list.Add(new NameValuePair("ClientTime", item.IsDirectStream ? string.Empty : DateTime.UtcNow.Ticks.ToString(CultureInfo.InvariantCulture)));- }-list.Add(new NameValuePair("MaxRefFrames", item.MaxRefFrames.HasValue ? StringHelper.ToStringCultureInvariant(item.MaxRefFrames.Value) : string.Empty));list.Add(new NameValuePair("MaxVideoBitDepth", item.MaxVideoBitDepth.HasValue ? StringHelper.ToStringCultureInvariant(item.MaxVideoBitDepth.Value) : string.Empty));list.Add(new NameValuePair("Profile", item.VideoProfile ?? string.Empty));diff --git a/MediaBrowser.Model/Entities/CollectionType.cs b/MediaBrowser.Model/Entities/CollectionType.csindex a259f4c077..187334c710 100644--- a/MediaBrowser.Model/Entities/CollectionType.cs+++ b/MediaBrowser.Model/Entities/CollectionType.cs@@ -68,4 +68,4 @@public const string MusicFavoriteAlbums = "MusicFavoriteAlbums";public const string MusicFavoriteSongs = "MusicFavoriteSongs";}-}+}\ No newline at end of filediff --git a/MediaBrowser.Model/Entities/MetadataProviders.cs b/MediaBrowser.Model/Entities/MetadataProviders.csindex 7644b150aa..f5ab0c1d47 100644--- a/MediaBrowser.Model/Entities/MetadataProviders.cs+++ b/MediaBrowser.Model/Entities/MetadataProviders.cs@@ -36,8 +36,6 @@ namespace MediaBrowser.Model.EntitiesMusicBrainzArtist = 10,MusicBrainzReleaseGroup = 11,Zap2It = 12,- NesBox = 13,- NesBoxRom = 14,TvRage = 15,AudioDbArtist = 16,AudioDbAlbum = 17,