From a1599ccd6c10343b069a4fda140573ab830cd55d Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 7 Jul 2013 11:54:52 -0400 Subject: [PATCH] change 3dformat xml tag to Video3DFormat --- MediaBrowser.Controller/Providers/BaseItemXmlParser.cs | 2 +- MediaBrowser.Providers/Movies/MovieDbProvider.cs | 3 ++- MediaBrowser.Providers/Savers/XmlSaverHelpers.cs | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/MediaBrowser.Controller/Providers/BaseItemXmlParser.cs b/MediaBrowser.Controller/Providers/BaseItemXmlParser.cs index a4a022af0..b7f3777c4 100644 --- a/MediaBrowser.Controller/Providers/BaseItemXmlParser.cs +++ b/MediaBrowser.Controller/Providers/BaseItemXmlParser.cs @@ -586,7 +586,7 @@ namespace MediaBrowser.Controller.Providers { switch (reader.Name) { - case "3DFormat": + case "Video3DFormat": { var video = item as Video; diff --git a/MediaBrowser.Providers/Movies/MovieDbProvider.cs b/MediaBrowser.Providers/Movies/MovieDbProvider.cs index 7347bfa8b..82fd460ac 100644 --- a/MediaBrowser.Providers/Movies/MovieDbProvider.cs +++ b/MediaBrowser.Providers/Movies/MovieDbProvider.cs @@ -575,7 +575,8 @@ namespace MediaBrowser.Providers.Movies Logger.Info("MoviedbProvider: Ignoring " + item.Name + " because ID forced blank."); return; } - if (item.GetProviderId(MetadataProviders.Tmdb) == null) item.SetProviderId(MetadataProviders.Tmdb, id); + + item.SetProviderId(MetadataProviders.Tmdb, id); var mainResult = await FetchMainResult(item, id, cancellationToken).ConfigureAwait(false); diff --git a/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs b/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs index 40a6db3b2..c24f1fd17 100644 --- a/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs +++ b/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs @@ -453,16 +453,16 @@ namespace MediaBrowser.Providers.Savers switch (video.Video3DFormat.Value) { case Video3DFormat.FullSideBySide: - builder.Append("<3DFormat>FSBS"); + builder.Append("FSBS"); break; case Video3DFormat.FullTopAndBottom: - builder.Append("<3DFormat>FTAB"); + builder.Append("FTAB"); break; case Video3DFormat.HalfSideBySide: - builder.Append("<3DFormat>HSBS"); + builder.Append("HSBS"); break; case Video3DFormat.HalfTopAndBottom: - builder.Append("<3DFormat>HTAB"); + builder.Append("HTAB"); break; } }