fb2 support

This commit is contained in:
Agel committed 2026-10-29 17:31:37 +01:00
1 parent 6fb7798476
commit c5439099f6
18 files changed
+2352 -54

No files matched your search

+4
View File
@@ -15,6 +15,7 @@
#include "backend/formats/FormatRegistry.h"
#include "backend/formats/WebImageProvider.h"
#include "backend/formats/sources/DirByteSource.h"
#include "backend/formats/sources/Fb2ByteSource.h"
#include "backend/formats/sources/RarByteSource.h"
#include "backend/formats/sources/ZipByteSource.h"
#include "backend/HistoryModel.h"
@@ -102,6 +103,9 @@ int main(int argc, char *argv[])
FormatSpec::comic({}, /*matchesDirectory=*/true, QStringLiteral("dir"),
[] { return std::make_unique<DirByteSource>(); }),
FormatSpec::epub([] { return std::make_unique<ZipByteSource>(); }),
FormatSpec::fb2(QStringLiteral("fb2"), [] { return std::make_unique<Fb2ByteSource>(); }),
FormatSpec::fb2(QStringLiteral("fbz"), [] { return std::make_unique<Fb2ByteSource>(); }),
FormatSpec::fb2(QStringLiteral("fb2.zip"), [] { return std::make_unique<Fb2ByteSource>(); }),
});
HistoryModel historyModel(formatRegistry);