[ArchiveTools] First attempt at integrating TGZ header read into quick

This commit is contained in:
Matt Nadareski
2016-08-25 16:00:49 -07:00
parent e5f2f5db8c
commit 782535e1aa

View File

@@ -9,11 +9,6 @@ using System.IO.Compression;
using System.Linq;
using System.Text.RegularExpressions;
using SharpCompress.Archive.GZip;
using SharpCompress.Common.GZip;
using SharpCompress.Reader.GZip;
using SharpCompress.Writer.GZip;
namespace SabreTools.Helper
{
public class ArchiveTools
@@ -476,6 +471,19 @@ namespace SabreTools.Helper
return roms;
}
// If we got back GZip, try to get TGZ info first
else if (at == ArchiveType.GZip)
{
Rom possibleTgz = GetTorrentGZFileInfo(input, logger);
// If it was, then add it to the outputs and continue
if (possibleTgz.Name != null)
{
roms.Add(possibleTgz);
return roms;
}
}
IReader reader = null;
try
{