Diaoxiaozhang / Ximalaya-XM-Decrypt

喜马拉雅xm文件解密工具
309 stars 87 forks source link

能否为x2m文件写一个解密的代码?貌似现在的代码没法解析x2m文件 #40

Open hzhang092 opened 2 months ago

hzhang092 commented 2 months ago

我尝试解密x2m文件时遇见了下面的error,貌似是因为id不对?不是xm文件?

Traceback (most recent call last): File "D:\henry\Downloads\Compressed\Ximalaya-XM-Decrypt-main\main.py", line 220, in decrypt_xm_file(file, output_path) File "D:\henry\Downloads\Compressed\Ximalaya-XM-Decrypt-main\main.py", line 146, in decrypt_xm_file info, audio_data = xm_decrypt(data) File "D:\henry\Downloads\Compressed\Ximalaya-XM-Decrypt-main\main.py", line 85, in xm_decrypt xm_info = get_xm_info(raw_data) File "D:\henry\Downloads\Compressed\Ximalaya-XM-Decrypt-main\main.py", line 50, in get_xm_info id3 = ID3(io.BytesIO(data), v2_version=3) File "D:\Softwares\anaconda\envs\xmly\lib\site-packages\mutagen\id3_file.py", line 76, in init super(ID3, self).init(*args, kwargs) File "D:\Softwares\anaconda\envs\xmly\lib\site-packages\mutagen\id3_tags.py", line 175, in init super(ID3Tags, self).init(*args, *kwargs) File "D:\Softwares\anaconda\envs\xmly\lib\site-packages\mutagen_util.py", line 534, in init super(DictProxy, self).init(args, kwargs) File "D:\Softwares\anaconda\envs\xmly\lib\site-packages\mutagen_tags.py", line 110, in init self.load(*args, kwargs) File "D:\Softwares\anaconda\envs\xmly\lib\site-packages\mutagen_util.py", line 185, in wrapper return func(*args, *kwargs) File "D:\Softwares\anaconda\envs\xmly\lib\site-packages\mutagen_util.py", line 156, in wrapper return func(self, h, args, kwargs) File "D:\Softwares\anaconda\envs\xmly\lib\site-packages\mutagen\id3_file.py", line 151, in load self._header = ID3Header(fileobj) File "D:\Softwares\anaconda\envs\xmly\lib\site-packages\mutagen_util.py", line 185, in wrapper return func(*args, **kwargs) File "D:\Softwares\anaconda\envs\xmly\lib\site-packages\mutagen\id3_tags.py", line 66, in init raise ID3NoHeaderError("%r doesn't start with an ID3 tag" % fn) mutagen.id3._util.ID3NoHeaderError: '' doesn't start with an ID3 tag