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