mirror of
https://github.com/smallfawn/decode_action.git
synced 2025-12-20 08:44:59 +08:00
Update decode.py
This commit is contained in:
@@ -2,9 +2,15 @@ import base64
|
|||||||
import bz2
|
import bz2
|
||||||
import zlib
|
import zlib
|
||||||
import lzma
|
import lzma
|
||||||
|
import gzip
|
||||||
|
|
||||||
|
|
||||||
def try_decompress(data):
|
def try_decompress(data):
|
||||||
|
try:
|
||||||
|
decompressed_data = gzip.decompress(data)
|
||||||
|
return decompressed_data
|
||||||
|
except Exception as e:
|
||||||
|
pass
|
||||||
# 尝试使用 bz2 解压缩
|
# 尝试使用 bz2 解压缩
|
||||||
try:
|
try:
|
||||||
decompressed_data = bz2.decompress(data)
|
decompressed_data = bz2.decompress(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user