Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/blame/commit/af4063c3e2ecbd8aa331720301ef3586894c36fd/NzbDrone.Common/ArchiveProvider.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System.Linq;
|
|
|
|
|
using Ionic.Zip;
|
|
|
|
|
using NLog;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Common
|
|
|
|
|
{
|
|
|
|
|
public class ArchiveProvider
|
|
|
|
|
{
|
|
|
|
|
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
|
|
|
|
|
|
|
|
|
public virtual void ExtractArchive(string compressedFile, string destination)
|
|
|
|
|
{
|
|
|
|
|
logger.Trace("Extracting archive [{0}] to [{1}]", compressedFile, destination);
|
|
|
|
|
|
|
|
|
|
using (var zipFile = ZipFile.Read(compressedFile))
|
|
|
|
|
{
|
|
|
|
|
zipFile.ExtractAll(destination);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
logger.Trace("Extraction complete.");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|