mirror of
https://github.com/danbulant/Mangades
synced 2026-07-07 20:10:36 +00:00
save titles
This commit is contained in:
parent
23d6247d35
commit
83c4b0891d
2 changed files with 4 additions and 2 deletions
|
|
@ -61,7 +61,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
const zip = await prepareEpub({
|
const zip = await prepareEpub({
|
||||||
title: `https://manga.danbulant.eu/${mangaId}/${chapter.data.id}`,
|
title: `${manga.title.en} ${chapter.data.attributes.chapter}`,
|
||||||
|
id: `https://manga.danbulant.eu/${mangaId}/${chapter.data.id}`,
|
||||||
file,
|
file,
|
||||||
chapter: chapter.data.attributes.chapter,
|
chapter: chapter.data.attributes.chapter,
|
||||||
links: hashes,
|
links: hashes,
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ const enc = new TextEncoder();
|
||||||
* @param {WritableStream} opts.file
|
* @param {WritableStream} opts.file
|
||||||
* @param {number} opts.chapter
|
* @param {number} opts.chapter
|
||||||
* @param {string|Date} opts.updatedAt
|
* @param {string|Date} opts.updatedAt
|
||||||
|
* @param {string} opts.id
|
||||||
*/
|
*/
|
||||||
export async function prepareEpub(opts) {
|
export async function prepareEpub(opts) {
|
||||||
const writer = opts.file.getWriter();
|
const writer = opts.file.getWriter();
|
||||||
|
|
@ -51,7 +52,7 @@ export async function prepareEpub(opts) {
|
||||||
<dc:title>${opts.title}</dc:title>
|
<dc:title>${opts.title}</dc:title>
|
||||||
<dc:language>en</dc:language>
|
<dc:language>en</dc:language>
|
||||||
<dc:creator>Unknown</dc:creator>
|
<dc:creator>Unknown</dc:creator>
|
||||||
<dc:identifier id="bookid"></dc:identifier>
|
<dc:identifier id="bookid">${opts.id}</dc:identifier>
|
||||||
<dc:type>Image</dc:type>
|
<dc:type>Image</dc:type>
|
||||||
|
|
||||||
<meta property="dcterms:modified">${opts.updatedAt.toString().split("+")[0]}Z</meta>
|
<meta property="dcterms:modified">${opts.updatedAt.toString().split("+")[0]}Z</meta>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue