mirror of
https://github.com/gotson/komga.git
synced 2025-12-23 00:44:43 +01:00
fix(komga): FixThumbnailsWithoutMetadata could not rerun itself
This commit is contained in:
parent
8e1e6992f2
commit
493a33b942
1 changed files with 3 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import org.gotson.komga.domain.model.BookMetadataPatchCapability
|
|||
import org.gotson.komga.domain.model.BookPageNumbered
|
||||
import org.gotson.komga.domain.model.CopyMode
|
||||
import org.gotson.komga.infrastructure.search.LuceneEntity
|
||||
import java.time.LocalDateTime
|
||||
|
||||
const val HIGHEST_PRIORITY = 8
|
||||
const val HIGH_PRIORITY = 6
|
||||
|
|
@ -125,8 +126,8 @@ sealed class Task(val priority: Int = DEFAULT_PRIORITY, val groupId: String? = n
|
|||
override fun toString(): String = "DeleteSeries(seriesId='$seriesId', priority='$priority')"
|
||||
}
|
||||
|
||||
class FixThumbnailsWithoutMetadata(priority: Int = DEFAULT_PRIORITY) : Task(priority) {
|
||||
override val uniqueId = "FIX_THUMBNAILS_WITHOUT_METADATA"
|
||||
class FixThumbnailsWithoutMetadata(priority: Int = DEFAULT_PRIORITY) : Task(priority, "FixThumbnailsWithoutMetadata") {
|
||||
override val uniqueId = "FIX_THUMBNAILS_WITHOUT_METADATA_${LocalDateTime.now()}"
|
||||
override fun toString(): String = "FixThumbnailsWithoutMetadata(priority='$priority')"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue