Improve format and error handling

This commit is contained in:
Agel committed 2026-04-08 20:41:14 +02:00
1 parent 503324e7e3
commit 86e44e5d2a
23 files changed
+138 -49

No files matched your search

+2
View File
@@ -422,3 +422,5 @@ Chapter EpubReader::loadChapter(int index)
return Chapter{index, chTitle, chunkXhtml(m_spineRawContent[index], m_spineHrefs[index])};
}
QString EpubReader::fileType() const { return QStringLiteral("epub"); }
+1
View File
@@ -19,6 +19,7 @@ public:
QString author() override;
QString coverImagePath() override;
QByteArray contentHash() override;
QString fileType() const override;
private:
QString m_filePath;
+2
View File
@@ -214,3 +214,5 @@ QByteArray TxtReader::contentHash()
{
return m_contentHash;
}
QString TxtReader::fileType() const { return QStringLiteral("txt"); }
+1
View File
@@ -16,6 +16,7 @@ public:
QString author() override;
QString coverImagePath() override;
QByteArray contentHash() override;
QString fileType() const override;
private:
QString m_content;