rate -> kbps

Signed-off-by: Carl Pearson <me@carlpearson.net>
This commit is contained in:
2025-10-06 05:44:40 -06:00
parent 18d640ab1f
commit 12137b1fa8

View File

@@ -277,7 +277,7 @@ func cleanupTranscodes() {
err := db.Where("status = ?", "pending").
Order("CASE " +
"WHEN dst_kind = 'video' AND height = 540 THEN 0 " +
"WHEN dst_kind = 'audio' AND rate = 96 THEN 0 " +
"WHEN dst_kind = 'audio' AND kbps = 96 THEN 0 " +
"ELSE 1 END").First(&trans).Error
// err := db.First(&trans, "status = ?", "pending").Error
if err == gorm.ErrRecordNotFound {