Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

转换无损格式的xm文件闪退报错 #41

Open
MXGMXG opened this issue Aug 11, 2024 · 1 comment
Open

转换无损格式的xm文件闪退报错 #41

MXGMXG opened this issue Aug 11, 2024 · 1 comment

Comments

@MXGMXG
Copy link

MXGMXG commented Aug 11, 2024

只有无损会闪退,同一集音频超高就不会闪退

日志:
正在解密C:/Users/18631/Music/喜马拉雅/三体(全六季)! 精品广播剧,刘慈欣著/《三体》第一季 第二集 射手和农场主.xm
FLAC, 1909.99 seconds, 48000 Hz (audio/flac)
encoder=Lavf58.76.100
title=《三体》第一季 第二集 射手和农场主
album=三体(全六季)| 精品广播剧,刘慈欣著
artist=三体宇宙
Traceback (most recent call last):
File "main.py", line 220, in
File "main.py", line 156, in decrypt_xm_file
File "mutagen_util.py", line 184, in wrapper
File "mutagen_util.py", line 155, in wrapper
File "mutagen\flac.py", line 850, in save
File "mutagen\flac.py", line 854, in _save
File "mutagen\flac.py", line 911, in __check_header
File "mutagen\flac.py", line 68, in read
mutagen.flac.error: file said 4 bytes, read 0 bytes
[6676] Failed to execute script 'main' due to unhandled exception!

@GuryYu
Copy link

GuryYu commented Nov 7, 2024

第156行注释掉就可以保存了

tags.save(buffer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants