mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Rename IsTorrent to IsStandardized
This commit is contained in:
@@ -308,7 +308,7 @@ namespace SabreTools.DatTools
|
||||
// Get the TGZ and TXZ status for later
|
||||
GZipArchive tgz = new(file);
|
||||
XZArchive txz = new(file);
|
||||
bool isSingleTorrent = tgz.IsTorrent() || txz.IsTorrent();
|
||||
bool isSingleTorrent = tgz.IsStandardized() || txz.IsStandardized();
|
||||
|
||||
// Get the base archive first
|
||||
BaseArchive? archive = FileTypeTool.CreateArchiveType(file);
|
||||
|
||||
@@ -267,7 +267,7 @@ namespace SabreTools.FileTypes.Archives
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool IsTorrent()
|
||||
public override bool IsStandardized()
|
||||
{
|
||||
// Check for the file existing first
|
||||
if (Filename == null || !File.Exists(Filename))
|
||||
|
||||
@@ -282,7 +282,7 @@ namespace SabreTools.FileTypes.Archives
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool IsTorrent()
|
||||
public override bool IsStandardized()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -354,7 +354,7 @@ namespace SabreTools.FileTypes.Archives
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool IsTorrent()
|
||||
public override bool IsStandardized()
|
||||
{
|
||||
// If we have an invalid file
|
||||
if (Filename == null)
|
||||
|
||||
@@ -271,7 +271,7 @@ namespace SabreTools.FileTypes.Archives
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool IsTorrent()
|
||||
public override bool IsStandardized()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ namespace SabreTools.FileTypes.Archives
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool IsTorrent()
|
||||
public override bool IsStandardized()
|
||||
{
|
||||
// Check for the file existing first
|
||||
if (Filename == null || !File.Exists(Filename))
|
||||
|
||||
@@ -539,7 +539,7 @@ namespace SabreTools.FileTypes.Archives
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override bool IsTorrent()
|
||||
public override bool IsStandardized()
|
||||
{
|
||||
Zip zf = new();
|
||||
ZipReturn zr = zf.ZipFileOpen(Filename!, -1, true);
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace SabreTools.FileTypes
|
||||
/// <summary>
|
||||
/// Check whether the input file is a standardized format
|
||||
/// </summary>
|
||||
public abstract bool IsTorrent();
|
||||
public abstract bool IsStandardized();
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user