|
|
@ -321,13 +321,13 @@ function MyClipping:parseHistoryFile(clippings, history_file, doc_file)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
local _, docname = util.splitFilePathName(doc_file)
|
|
|
|
local _, docname = util.splitFilePathName(doc_file)
|
|
|
|
local title, author = self:parseTitleFromPath(util.splitFileNameSuffix(docname), doc_file)
|
|
|
|
local parsed_title, parsed_author = self:parseTitleFromPath(util.splitFileNameSuffix(docname), doc_file)
|
|
|
|
clippings[title] = {
|
|
|
|
clippings[parsed_title] = {
|
|
|
|
file = doc_file,
|
|
|
|
file = doc_file,
|
|
|
|
title = title,
|
|
|
|
title = stored.stats.title or parsed_title,
|
|
|
|
author = author,
|
|
|
|
author = stored.stats.authors or parsed_author,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
self:parseHighlight(stored.highlight, stored.bookmarks, clippings[title])
|
|
|
|
self:parseHighlight(stored.highlight, stored.bookmarks, clippings[parsed_title])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|