node build fixed
This commit is contained in:
15
seanime-2.9.10/internal/manga/chapter_container_helpers.go
Normal file
15
seanime-2.9.10/internal/manga/chapter_container_helpers.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package manga
|
||||
|
||||
import (
|
||||
hibikemanga "seanime/internal/extension/hibike/manga"
|
||||
)
|
||||
|
||||
// GetChapter returns a chapter from the container
|
||||
func (cc *ChapterContainer) GetChapter(id string) (ret *hibikemanga.ChapterDetails, found bool) {
|
||||
for _, c := range cc.Chapters {
|
||||
if c.ID == id {
|
||||
return c, true
|
||||
}
|
||||
}
|
||||
return nil, false
|
||||
}
|
||||
Reference in New Issue
Block a user