Reach the last chapter while reading
This commit is contained in:
parent
f89416fbf6
commit
a888d1ac3a
1 changed files with 2 additions and 4 deletions
|
@ -61,10 +61,8 @@ func nextPrev(e *epub.Epub, file string, id string, base string) (string, string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if it.CurrUrl() == file {
|
if it.CurrUrl() == file {
|
||||||
_, err := it.Next()
|
it.Next()
|
||||||
if err == nil {
|
next = it.CurrUrl()
|
||||||
next = it.CurrUrl()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if prev != "" {
|
if prev != "" {
|
||||||
prev = base + id + "/" + prev
|
prev = base + id + "/" + prev
|
||||||
|
|
Reference in a new issue