The Free Software Media System - Server Backend & API
update xmltv parsing
Luke Pulverenti0fbb5ab4346c
diff --git a/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs b/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.csindex 8ea98879a6..95ec1dee0d 100644--- a/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs+++ b/Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs@@ -110,7 +110,15 @@ namespace Emby.Server.Implementations.LiveTv.Listingsvar tempFolder = Path.Combine(_config.ApplicationPaths.TempDirectory, Guid.NewGuid().ToString());_fileSystem.CreateDirectory(tempFolder);- _zipClient.ExtractAllFromGz(stream, tempFolder, true);+ try+ {+ _zipClient.ExtractAllFromGz(stream, tempFolder, true);+ }+ catch+ {+ // If the extraction fails just return the original file, it could be a gz+ return file;+ }return _fileSystem.GetFiles(tempFolder, true).Where(i => string.Equals(i.Extension, ".xml", StringComparison.OrdinalIgnoreCase))