diff --git a/webif/lib/auto/plugin/decrypt/queue.hook b/webif/lib/auto/plugin/decrypt/queue.hook index ee61cbfc..99dac0aa 100644 --- a/webif/lib/auto/plugin/decrypt/queue.hook +++ b/webif/lib/auto/plugin/decrypt/queue.hook @@ -11,6 +11,10 @@ proc ::decrypt::dequeue {q ts} { return {"OK" "Already decrypted"} } + if {![$ts size]} { + return {"FAILED" "Zero-byte recording, cannot process"} + } + if {![system dlnastatus]} { if {[system instandby]} { # Prevent polling every minute