Bugfixes
This commit is contained in:
parent
2c12c2d6ea
commit
de95e6bebb
4
media.go
4
media.go
@ -95,7 +95,7 @@ type Page struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *Page) export(dir string, config ExportConfig) error {
|
func (self *Page) export(dir string, config ExportConfig) error {
|
||||||
name, err := buildTemplatedName(config.PageTemplate, self.Node.Name, self.Index+1, len(self.Volume.Pages)-1)
|
name, err := buildTemplatedName(config.PageTemplate, self.Node.Name, self.Index+1, len(self.Volume.Pages))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -118,7 +118,7 @@ type Volume struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *Volume) export(path string, config ExportConfig, allocator *TempDirAllocator) error {
|
func (self *Volume) export(path string, config ExportConfig, allocator *TempDirAllocator) error {
|
||||||
name, err := buildTemplatedName(config.VolumeTemplate, stripExt(self.Node.Name), self.Index, self.Book.VolumeCount-1)
|
name, err := buildTemplatedName(config.VolumeTemplate, stripExt(self.Node.Name), self.Index, self.Book.VolumeCount)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
第\s*(\d+)\s*巻
|
第\s*(\d+)\s*巻
|
||||||
(?i)vo?l?u?m?e?[.\s]*(\d+)
|
(?i)vo?l?u?m?e?[.\s]*(\d+)
|
||||||
`(\d+)\D*$`
|
(\d+)\D*$
|
||||||
|
Loading…
Reference in New Issue
Block a user