mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Transcoder: Prevent Chapters Parsing from failiing when no chapters (#495)
This commit is contained in:
parent
c8402780f3
commit
b6e0b5b328
@ -338,7 +338,7 @@ func chapterTimeIsValid(chapterTime string) bool {
|
||||
}
|
||||
|
||||
func getChapters(chapters_begin uint32, chapters_end uint32, mi *mediainfo.File, duration float32) []Chapter {
|
||||
chapterCount := max(chapters_end-chapters_begin, 1)
|
||||
chapterCount := max(chapters_end-chapters_begin, 0)
|
||||
chapterIterationCount := chapterCount
|
||||
chapters := make([]Chapter, chapterCount)
|
||||
chapterIndex := 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user