16 lines
328 B
Go
16 lines
328 B
Go
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
|
|
}
|