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

This commit is contained in:
Emir Taletovic authored and GitHub committed 2022-03-11 19:40:02 +01:00
1 parent a83a129c40
commit 3e78847c46
1 file changed
+1 -1
+1 -1
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