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"
|
<< "*.rar"
|
||||||
<< "*.zip"
|
<< "*.zip"
|
||||||
<< "*.tar"
|
<< "*.tar"
|
||||||
|
<< "*.7z"
|
||||||
|
<< "*.cb7"
|
||||||
<< "*.cbt";
|
<< "*.cbt";
|
||||||
const QStringList LiteralComicArchiveExtensions = QStringList() << "cbr"
|
const QStringList LiteralComicArchiveExtensions = QStringList() << "cbr"
|
||||||
<< "cbz"
|
<< "cbz"
|
||||||
<< "rar"
|
<< "rar"
|
||||||
<< "zip"
|
<< "zip"
|
||||||
<< "tar"
|
<< "tar"
|
||||||
|
<< "7z"
|
||||||
|
<< "cb7"
|
||||||
<< "cbt";
|
<< "cbt";
|
||||||
#endif //use_unarr
|
#endif //use_unarr
|
||||||
#ifndef NO_PDF
|
#ifndef NO_PDF
|
||||||
|
@ -22,7 +22,8 @@ CompressedArchive::CompressedArchive(const QString &filePath, QObject *parent)
|
|||||||
//open archive
|
//open archive
|
||||||
ar = ar_open_rar_archive(stream);
|
ar = ar_open_rar_archive(stream);
|
||||||
//TODO: build unarr with 7z support and test this!
|
//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)
|
if (!ar)
|
||||||
ar = ar_open_tar_archive(stream);
|
ar = ar_open_tar_archive(stream);
|
||||||
//zip detection is costly, so it comes last...
|
//zip detection is costly, so it comes last...
|
||||||
|
Loading…
Reference in New Issue
Block a user