mirror of
https://github.com/bestnite/bilinovel-downloader.git
synced 2025-10-26 09:11:01 +00:00
Update dependencies and templates: bump templ to v0.3.943, update pflag to v1.0.7, and golang.org/x/net to v0.43.0; adjust XML declaration formatting in cover template
This commit is contained in:
@@ -241,8 +241,8 @@ func CreateContentOPF(outputPath string, uuid string, volume *model.Volume, extr
|
||||
})
|
||||
for filename := range chapter.Content.Images {
|
||||
item := model.ManifestItem{
|
||||
ID: fmt.Sprintf("chapter-%03v-%s", i, filepath.Ext(filename)),
|
||||
Link: fmt.Sprintf("OEBPS/Images/chapter-%03v/%s", i, filepath.Ext(filename)),
|
||||
ID: fmt.Sprintf("chapter-%03v-%s", i, filepath.Base(filename)),
|
||||
Link: fmt.Sprintf("OEBPS/Images/chapter-%03v/%s", i, filepath.Base(filename)),
|
||||
Media: fmt.Sprintf("image/%s", strings.ReplaceAll(strings.TrimPrefix(filepath.Ext(filename), "."), "jpg", "jpeg")),
|
||||
}
|
||||
manifest.Items = append(manifest.Items, item)
|
||||
|
||||
Reference in New Issue
Block a user