Enable unarr 7z support. Closes #113 (#115)

* Enable unarr 7z support. Closes #113
This commit is contained in:
Jeremy Douglass 2020-02-11 23:38:03 -08:00 committed by GitHub
parent 65a77daa75
commit 15c126fda5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -65,12 +65,16 @@ const QStringList ComicArchiveExtensions = QStringList() << "*.cbr"
<< "*.rar"
<< "*.zip"
<< "*.tar"
<< "*.7z"
<< "*.cb7"
<< "*.cbt";
const QStringList LiteralComicArchiveExtensions = QStringList() << "cbr"
<< "cbz"
<< "rar"
<< "zip"
<< "tar"
<< "7z"
<< "cb7"
<< "cbt";
#endif //use_unarr
#ifndef NO_PDF

View File

@ -22,7 +22,8 @@ CompressedArchive::CompressedArchive(const QString &filePath, QObject *parent)
//open archive
ar = ar_open_rar_archive(stream);
//TODO: build unarr with 7z support and test this!
//if (!ar) ar = ar_open_7z_archive(stream);
if (!ar)
ar = ar_open_7z_archive(stream);
if (!ar)
ar = ar_open_tar_archive(stream);
//zip detection is costly, so it comes last...