fix
This commit is contained in:
parent
64e3070a67
commit
3035a39083
|
|
@ -173,7 +173,6 @@ async def s_api_v1_storage_get(request, file_hash=None):
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
make_log("Storage", f"Error loading audio from binary: {e}", level="debug")
|
make_log("Storage", f"Error loading audio from binary: {e}", level="debug")
|
||||||
|
|
||||||
audio = AudioSegment(content_file_bin)
|
|
||||||
audio = audio[:seconds_limit * 1000] if seconds_limit else audio
|
audio = audio[:seconds_limit * 1000] if seconds_limit else audio
|
||||||
audio.export(tempfile_path, format="mp3", cover=cover_tempfile_path)
|
audio.export(tempfile_path, format="mp3", cover=cover_tempfile_path)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue