mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ArchiveTools] First attempt at integrating TGZ header read into quick
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user