This commit is contained in:
user 2024-04-06 11:36:18 +03:00
parent 64e3070a67
commit 3035a39083
1 changed files with 0 additions and 1 deletions

View File

@ -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: