diff --git a/downloader/bilinovel/bilinovel.go b/downloader/bilinovel/bilinovel.go index e56fcf8..7110829 100644 --- a/downloader/bilinovel/bilinovel.go +++ b/downloader/bilinovel/bilinovel.go @@ -518,7 +518,7 @@ func CreateContentOPF(dirPath string, uuid string, volume *model.Volume) error { }, Languages: []model.DCLanguage{ { - Value: "zh-TW", + Value: "zh-CN", }, }, Descriptions: []model.DCDescription{ diff --git a/go.mod b/go.mod index 837436b..aab1726 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.24.2 require ( github.com/PuerkitoBio/goquery v1.10.3 - github.com/a-h/templ v0.3.857 + github.com/a-h/templ v0.3.906 github.com/go-resty/resty/v2 v2.16.5 github.com/google/uuid v1.6.0 github.com/spf13/cobra v1.9.1 diff --git a/go.sum b/go.sum index 84b1afa..6e98086 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,8 @@ github.com/PuerkitoBio/goquery v1.10.3 h1:pFYcNSqHxBD06Fpj/KsbStFRsgRATgnf3LeXiU github.com/PuerkitoBio/goquery v1.10.3/go.mod h1:tMUX0zDMHXYlAQk6p35XxQMqMweEKB7iK7iLNd4RH4Y= github.com/a-h/templ v0.3.857 h1:6EqcJuGZW4OL+2iZ3MD+NnIcG7nGkaQeF2Zq5kf9ZGg= github.com/a-h/templ v0.3.857/go.mod h1:qhrhAkRFubE7khxLZHsBFHfX+gWwVNKbzKeF9GlPV4M= +github.com/a-h/templ v0.3.906 h1:ZUThc8Q9n04UATaCwaG60pB1AqbulLmYEAMnWV63svg= +github.com/a-h/templ v0.3.906/go.mod h1:FFAu4dI//ESmEN7PQkJ7E7QfnSEMdcnu7QrAY8Dn334= github.com/andybalholm/cascadia v1.3.3 h1:AG2YHrzJIm4BZ19iwJ/DAua6Btl3IwJX+VI4kktS1LM= github.com/andybalholm/cascadia v1.3.3/go.mod h1:xNd9bqTn98Ln4DwST8/nG+H0yuB8Hmgu1YHNnWw0GeA= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= diff --git a/template/container.xml.templ b/template/container.xml.templ index 3c80b42..9796422 100644 --- a/template/container.xml.templ +++ b/template/container.xml.templ @@ -1,8 +1,8 @@ package template templ ContainerXML() { - @templ.Raw(``) - + @templ.Raw(``) + diff --git a/template/container.xml_templ.go b/template/container.xml_templ.go index 5e35d57..8a4a31f 100644 --- a/template/container.xml_templ.go +++ b/template/container.xml_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.857 +// templ: version: v0.3.906 package template //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -29,11 +29,11 @@ func ContainerXML() templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templ.Raw(``).Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = templ.Raw(``).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/template/content.opf.templ b/template/content.opf.templ index 06d95c6..c786a8e 100644 --- a/template/content.opf.templ +++ b/template/content.opf.templ @@ -3,7 +3,7 @@ package template import "bilinovel-downloader/model" templ ContentOPF(uniqueIdentifier string, dc *model.DublinCoreMetadata, manifest *model.Manifest, spine *model.Spine, guide *model.Guide) { - @templ.Raw(``) + @templ.Raw(``) if dc != nil { {{ metadata, err := dc.Marshal() }} diff --git a/template/content.opf_templ.go b/template/content.opf_templ.go index 72dd8e0..121ed07 100644 --- a/template/content.opf_templ.go +++ b/template/content.opf_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.857 +// templ: version: v0.3.906 package template //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -31,7 +31,7 @@ func ContentOPF(uniqueIdentifier string, dc *model.DublinCoreMetadata, manifest templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templ.Raw(``).Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = templ.Raw(``).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/template/content.xhtml.templ b/template/content.xhtml.templ index 60f0efe..7e59345 100644 --- a/template/content.xhtml.templ +++ b/template/content.xhtml.templ @@ -3,9 +3,9 @@ package template import "bilinovel-downloader/model" templ ContentXHTML(content *model.Chapter) { - @templ.Raw(``) - @templ.Raw(``) - + @templ.Raw(``) + // @templ.Raw(``) + { content.Title } @templ.Raw(``) diff --git a/template/content.xhtml_templ.go b/template/content.xhtml_templ.go index 484eabc..69ea939 100644 --- a/template/content.xhtml_templ.go +++ b/template/content.xhtml_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.857 +// templ: version: v0.3.906 package template //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -31,15 +31,11 @@ func ContentXHTML(content *model.Chapter) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templ.Raw(``).Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = templ.Raw(``).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templ.Raw(``).Render(ctx, templ_7745c5c3_Buffer) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:epub=\"http://www.idpf.org/2007/ops\" xml:lang=\"zh-CN\"><head><title>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/template/toc.ncx.templ b/template/toc.ncx.templ index d627ca6..86e9ab3 100644 --- a/template/toc.ncx.templ +++ b/template/toc.ncx.templ @@ -3,7 +3,7 @@ package template import "bilinovel-downloader/model" templ TocNCX(title string, head *model.TocNCXHead, navMap *model.NavMap) { - @templ.Raw(`<?xml version="1.0" encoding="UTF-8"?>`) + @templ.Raw(`<?xml version='1.0' encoding='utf-8'?>`) @templ.Raw(`<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">`) <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1"> if head != nil { diff --git a/template/toc.ncx_templ.go b/template/toc.ncx_templ.go index 09a4017..9eb7a11 100644 --- a/template/toc.ncx_templ.go +++ b/template/toc.ncx_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.857 +// templ: version: v0.3.906 package template //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -31,7 +31,7 @@ func TocNCX(title string, head *model.TocNCXHead, navMap *model.NavMap) templ.Co templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templ.Raw(`<?xml version="1.0" encoding="UTF-8"?>`).Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = templ.Raw(`<?xml version='1.0' encoding='utf-8'?>`).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }