fix: incorrect param

This commit is contained in:
WorldObservationLog
2024-05-17 23:38:43 +08:00
parent dbfd187bcf
commit 51c967c60f

View File

@@ -156,7 +156,7 @@ def encapsulate(song_info: SongInfo, decrypted_media: bytes, atmos_convent: bool
f.write(str(nhml_xml))
subprocess.run(f"gpac -i {nhml_name.absolute()} nhmlr -o {song_name.absolute()}",
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.run(f'mp4box -add {song_name.absolute()} -ipod {song_name.absolute()}',
subprocess.run(f'mp4box -ipod {song_name.absolute()}',
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
with open(song_name.absolute(), "rb") as f:
final_song = f.read()