diff --git a/common/comic.cpp b/common/comic.cpp index 5a126701..514bc084 100644 --- a/common/comic.cpp +++ b/common/comic.cpp @@ -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 diff --git a/compressed_archive/unarr/compressed_archive.cpp b/compressed_archive/unarr/compressed_archive.cpp index 053efbea..a31f00a2 100644 --- a/compressed_archive/unarr/compressed_archive.cpp +++ b/compressed_archive/unarr/compressed_archive.cpp @@ -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...