Reach the last chapter while reading

This commit is contained in:
Las Zenow 2012-08-28 10:02:44 +02:00
parent f89416fbf6
commit a888d1ac3a

View file

@ -61,10 +61,8 @@ func nextPrev(e *epub.Epub, file string, id string, base string) (string, string
}
}
if it.CurrUrl() == file {
_, err := it.Next()
if err == nil {
next = it.CurrUrl()
}
it.Next()
next = it.CurrUrl()
}
if prev != "" {
prev = base + id + "/" + prev