diff --git a/refinery/units/compression/decompress.py b/refinery/units/compression/decompress.py index 2caec023a..0d1335600 100644 --- a/refinery/units/compression/decompress.py +++ b/refinery/units/compression/decompress.py @@ -109,7 +109,7 @@ def __init__( ) self.engines: List[Unit] = [ engine.assemble() for engine in [ - zstd, szdd, brotli, zl, lzma, aplib, qlz, lzf, lzw, jcalg, bz2, blz, lzjb, lz4, lzo, lznt1, nrv2e, nrv2d, nrv2b] + zstd, szdd, bz2, zl, lzf, lzma, lzw, jcalg, lzo, aplib, qlz, brotli, blz, lzjb, lz4, lznt1, nrv2e, nrv2d, nrv2b] ] for engine in self.engines: engine.log_detach() diff --git a/refinery/units/compression/lzf.py b/refinery/units/compression/lzf.py index c9cc6f1af..7238c33b0 100644 --- a/refinery/units/compression/lzf.py +++ b/refinery/units/compression/lzf.py @@ -195,3 +195,8 @@ def process(self, data): raise RefineryPartialResult(msg, out.getvalue()) return out.getvalue() + + @classmethod + def handles(self, data: bytearray): + if data[:2] == LZFHeader.MAGIC: + return True