mirror of
https://github.com/zhaarey/AppleMusicDecrypt.git
synced 2025-10-23 15:11:06 +00:00
fix: incorrect broad name in ftyp box
This commit is contained in:
@@ -156,6 +156,8 @@ def encapsulate(song_info: SongInfo, decrypted_media: bytes, atmos_convent: bool
|
|||||||
f.write(str(nhml_xml))
|
f.write(str(nhml_xml))
|
||||||
subprocess.run(f"gpac -i {nhml_name.absolute()} nhmlr -o {song_name.absolute()}",
|
subprocess.run(f"gpac -i {nhml_name.absolute()} nhmlr -o {song_name.absolute()}",
|
||||||
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
|
subprocess.run(f'mp4box -add {song_name.absolute()} -brand "M4A " {song_name.absolute()}',
|
||||||
|
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
with open(song_name.absolute(), "rb") as f:
|
with open(song_name.absolute(), "rb") as f:
|
||||||
final_song = f.read()
|
final_song = f.read()
|
||||||
tmp_dir.cleanup()
|
tmp_dir.cleanup()
|
||||||
|
|||||||
Reference in New Issue
Block a user