mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
* Enable unarr 7z support. Closes #113
This commit is contained in:
parent
65a77daa75
commit
15c126fda5
@ -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
|
||||
|
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user