Calibre plugin - Fixed hang when book has series but series index is nil (#8870)

pull/8892/head
Emir Taletovic 2 years ago committed by GitHub
parent a83a129c40
commit 3e78847c46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -271,7 +271,7 @@ function CalibreSearch:bookCatalog(t, option)
local entry = {}
entry.info = getBookInfo(book)
entry.path = book.rootpath .. "/" .. book.lpath
if series then
if series and book.series_index then
local major, minor = string.format("%05.2f", book.series_index):match("([^.]+).([^.]+)")
if minor ~= "00" then
subseries = true

Loading…
Cancel
Save