Commit c39b589a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

IMediaLibrary: Remove enableFailedThumbnailRegeneration

Since we allow the re-generation of new thumbnails, this doesn't make
much sense anymore
parent 749530c7
Pipeline #8009 failed with stage
in 11 minutes and 23 seconds
......@@ -559,14 +559,6 @@ public:
*/
virtual void forceRescan() = 0;
/**
* @brief enableFailedThumbnailRegeneration Allow failed thumbnail attempt to be retried
*
* This will not attempt to regenerate the thumbnail immediatly, requestThumbnail
* still has to be called afterward.
*/
virtual void enableFailedThumbnailRegeneration() = 0;
virtual void addParserService( std::shared_ptr<parser::IParserService> service ) = 0;
virtual void addThumbnailer( std::shared_ptr<IThumbnailer> thumbnailer ) = 0;
......
......@@ -1737,11 +1737,6 @@ void MediaLibrary::forceRescan()
}
}
void MediaLibrary::enableFailedThumbnailRegeneration()
{
Thumbnail::deleteFailureRecords( this );
}
void MediaLibrary::addParserService( std::shared_ptr<parser::IParserService> service )
{
// For now we only support 1 external service of type MetadataExtraction
......
......@@ -184,8 +184,6 @@ public:
virtual void forceRescan() override;
virtual void enableFailedThumbnailRegeneration() override;
virtual void addParserService( std::shared_ptr<parser::IParserService> service ) override;
virtual void addThumbnailer( std::shared_ptr<IThumbnailer> thumbnailer ) override;
......
......@@ -225,13 +225,6 @@ int64_t Thumbnail::insert()
return m_id;
}
bool Thumbnail::deleteFailureRecords(MediaLibraryPtr ml)
{
static const std::string req = "DELETE FROM " + Table::Name +
" WHERE mrl IS NULL";
return sqlite::Tools::executeDelete( ml->getConn(), req );
}
std::string Thumbnail::path( MediaLibraryPtr ml, int64_t thumbnailId )
{
return ml->thumbnailPath() + std::to_string( thumbnailId ) + ".jpg";
......
......@@ -155,13 +155,6 @@ public:
int64_t entityId,
ThumbnailSizeType sizeType );
/**
* @brief deleteFailureRecords Allow the thumbnail to retry any previously failed attempt
*
* This will delete all failure records
*/
static bool deleteFailureRecords( MediaLibraryPtr ml );
static std::string path( MediaLibraryPtr ml, int64_t thumbnailId );
static const std::string EmptyMrl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment