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

This commit is contained in:
Emir Taletovic
2022-03-11 10:40:02 -08:00
committed by GitHub
parent a83a129c40
commit 3e78847c46

View File

@@ -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