The Free Software Media System - Server Backend & API
update xmltv parsing
Luke Pulverentif616aee90b1a
diff --git a/Emby.Server.Core/Configuration/ServerConfigurationManager.cs b/Emby.Server.Core/Configuration/ServerConfigurationManager.csindex f98c096ca3..eb3d8b9f9c 100644--- a/Emby.Server.Core/Configuration/ServerConfigurationManager.cs+++ b/Emby.Server.Core/Configuration/ServerConfigurationManager.cs@@ -141,7 +141,6 @@ namespace Emby.Server.Core.Configuration{var newConfig = (ServerConfiguration)newConfiguration;- ValidatePathSubstitutions(newConfig);ValidateMetadataPath(newConfig);ValidateSslCertificate(newConfig);@@ -173,17 +172,6 @@ namespace Emby.Server.Core.Configuration}}- private void ValidatePathSubstitutions(ServerConfiguration newConfig)- {- foreach (var map in newConfig.PathSubstitutions)- {- if (string.IsNullOrWhiteSpace(map.From) || string.IsNullOrWhiteSpace(map.To))- {- throw new ArgumentException("Invalid path substitution");- }- }- }-/// <summary>/// Validates the metadata path./// </summary>diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csprojindex e3cd968945..26053719bf 100644--- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj+++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj@@ -309,8 +309,8 @@<Project>{4f26d5d8-a7b0-42b3-ba42-7cb7d245934e}</Project><Name>SocketHttpListener.Portable</Name></ProjectReference>- <Reference Include="Emby.XmlTv, Version=1.0.6193.39741, Culture=neutral, processorArchitecture=MSIL">- <HintPath>..\packages\Emby.XmlTv.1.0.3\lib\portable-net45+win8\Emby.XmlTv.dll</HintPath>+ <Reference Include="Emby.XmlTv, Version=1.0.6236.39295, Culture=neutral, processorArchitecture=MSIL">+ <HintPath>..\packages\Emby.XmlTv.1.0.4\lib\portable-net45+win8\Emby.XmlTv.dll</HintPath><Private>True</Private></Reference><Reference Include="MediaBrowser.Naming, Version=1.0.6201.24431, Culture=neutral, processorArchitecture=MSIL">diff --git a/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs b/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.csindex 0cf8082563..66db4f3f2c 100644--- a/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs+++ b/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs@@ -152,10 +152,18 @@ namespace Emby.Server.Implementations.LiveTv.ListingsHasImage = p.Icon != null && !String.IsNullOrEmpty(p.Icon.Source),OfficialRating = p.Rating != null && !String.IsNullOrEmpty(p.Rating.Value) ? p.Rating.Value : null,CommunityRating = p.StarRating.HasValue ? p.StarRating.Value : (float?)null,- SeriesId = p.Episode != null ? p.Title.GetMD5().ToString("N") : null,- ShowId = ((p.Title ?? string.Empty) + (episodeTitle ?? string.Empty)).GetMD5().ToString("N")+ SeriesId = p.Episode != null ? p.Title.GetMD5().ToString("N") : null};+ if (!string.IsNullOrWhiteSpace(p.ProgramId))+ {+ programInfo.ShowId = p.ProgramId;+ }+ else+ {+ programInfo.ShowId = ((p.Title ?? string.Empty) + (episodeTitle ?? string.Empty)).GetMD5().ToString("N");+ }+if (programInfo.IsMovie){programInfo.IsSeries = false;diff --git a/Emby.Server.Implementations/packages.config b/Emby.Server.Implementations/packages.configindex fcce67b330..a27d6b4e23 100644--- a/Emby.Server.Implementations/packages.config+++ b/Emby.Server.Implementations/packages.config@@ -1,6 +1,6 @@<?xml version="1.0" encoding="utf-8"?><packages>- <package id="Emby.XmlTv" version="1.0.3" targetFramework="portable45-net45+win8" />+ <package id="Emby.XmlTv" version="1.0.4" targetFramework="portable45-net45+win8" /><package id="MediaBrowser.Naming" version="1.0.4" targetFramework="portable45-net45+win8" /><package id="SQLitePCL.pretty" version="1.1.0" targetFramework="portable45-net45+win8" /><package id="SQLitePCLRaw.core" version="1.1.1" targetFramework="portable45-net45+win8" />