Make getBestTargetBookId public.

This commit is contained in:
Matthieu Gautier
2024-02-07 16:26:35 +01:00
parent f3a604380c
commit 3e9d50fecb
2 changed files with 15 additions and 5 deletions

View File

@ -192,6 +192,7 @@ void Library::cleanupBookCollection(BookIdCollection& books, const std::string&
}
std::string Library::getBestTargetBookId(const Bookmark& bookmark, MigrationMode migrationMode) const {
std::lock_guard<std::recursive_mutex> lock(m_mutex);
// Search for a existing book with the same name
auto book_filter = Filter();
if (!bookmark.getBookName().empty()) {