Skip to content

Commit 3629096

Browse files
committed
Fixing epub archive name - image path
1 parent da43ad4 commit 3629096

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

convert/epub/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func writeContainer(zw *zip.Writer) error {
306306
func writeImages(zw *zip.Writer, images fb2.BookImages, _ *zap.Logger) error {
307307
for id, img := range images {
308308
// Filename already contains directory (e.g., "images/img00001.jpg")
309-
filename := filepath.Join(oebpsDir, img.Filename)
309+
filename := path.Join(oebpsDir, img.Filename)
310310

311311
if err := writeDataToZip(zw, filename, img.Data); err != nil {
312312
return fmt.Errorf("unable to write image %s: %w", id, err)

convert/kfx/kfx.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ func Generate(ctx context.Context, c *content.Content, outputPath string, cfg *c
2525
return err
2626
}
2727

28-
// if true {
29-
// return fmt.Errorf("KFX generation is experimental and not yet implemented")
30-
// }
28+
if true {
29+
return fmt.Errorf("KFX generation is experimental and not yet implemented")
30+
}
3131

3232
log.Info("Generating KFX", zap.String("output", outputPath))
3333

0 commit comments

Comments
 (0)