Fixed missing external cover import
This commit is contained in:
@@ -41,7 +41,7 @@ namespace lms::scanner
|
||||
namespace
|
||||
{
|
||||
constexpr std::size_t readBatchSize{ 100 };
|
||||
constexpr std::size_t writeBatchSize{ 10 };
|
||||
constexpr std::size_t writeBatchSize{ 20 };
|
||||
|
||||
struct ArtistImageAssociation
|
||||
{
|
||||
@@ -170,9 +170,8 @@ namespace lms::scanner
|
||||
|
||||
void updateArtistImages(db::Session& session, ArtistImageAssociationContainer& imageAssociations)
|
||||
{
|
||||
if (imageAssociations.empty())
|
||||
return;
|
||||
|
||||
while (!imageAssociations.empty())
|
||||
{
|
||||
auto transaction{ session.createWriteTransaction() };
|
||||
|
||||
for (std::size_t i{}; !imageAssociations.empty() && i < writeBatchSize; ++i)
|
||||
@@ -181,6 +180,7 @@ namespace lms::scanner
|
||||
imageAssociations.pop_front();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> constructArtistFileNames()
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace lms::scanner
|
||||
namespace
|
||||
{
|
||||
constexpr std::size_t readBatchSize{ 100 };
|
||||
constexpr std::size_t writeBatchSize{ 10 };
|
||||
constexpr std::size_t writeBatchSize{ 20 };
|
||||
|
||||
struct ReleaseImageAssociation
|
||||
{
|
||||
@@ -166,9 +166,8 @@ namespace lms::scanner
|
||||
|
||||
void updateReleaseImages(db::Session& session, ReleaseImageAssociationContainer& imageAssociations)
|
||||
{
|
||||
if (imageAssociations.empty())
|
||||
return;
|
||||
|
||||
while (!imageAssociations.empty())
|
||||
{
|
||||
auto transaction{ session.createWriteTransaction() };
|
||||
|
||||
for (std::size_t i{}; !imageAssociations.empty() && i < writeBatchSize; ++i)
|
||||
@@ -177,6 +176,7 @@ namespace lms::scanner
|
||||
imageAssociations.pop_front();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> constructReleaseFileNames()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user