-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
問題描述
下載 《SI-VIS:英雄之聲》第5集 出現錯誤【Received response with content-encoding: gzip, but failed to decode it.】。
經測試《SI-VIS:英雄之聲》其他集數【第 1、2、3 集】皆可成功下載。
- 預期行為:成功下載動畫瘋影片。
- 實際行為:下載到一半失敗,並出錯。
使用者電腦環境配置
電腦作業系統:Windows OS 11 【25H2 64位元】
CPU處理器:Intel(R) Core(TM) i9-14900HX
Python版本:3.7.2
【命令提示字元】下載影片的執行指令
python aniGamerPlus.py --resolution 1080 --danmu --sn 45916 --download_mode single
錯誤截圖
config.json 配置
{
"bangumi_dir": "",
"temp_dir": "",
"classify_bangumi": true,
"classify_season": false,
"check_frequency": 5,
"download_cd": 60,
"parse_sn_cd": 5,
"download_resolution": "1080",
"lock_resolution": false,
"only_use_vip": false,
"default_download_mode": "latest",
"use_copyfile_method": false,
"multi-thread": 1,
"multi_upload": 3,
"segment_download_mode": true,
"multi_downloading_segment": 2,
"segment_max_retry": 8,
"add_bangumi_name_to_video_filename": true,
"add_resolution_to_video_filename": true,
"customized_video_filename_prefix": "【動畫瘋】",
"customized_bangumi_name_suffix": "",
"customized_video_filename_suffix": "",
"video_filename_extension": "mp4",
"zerofill": 1,
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0",
"use_proxy": false,
"proxy": "http://user:[email protected]:1000",
"no_proxy_akamai": false,
"upload_to_server": false,
"ftp": {
"server": "",
"port": "",
"user": "",
"pwd": "",
"tls": true,
"cwd": "",
"show_error_detail": false,
"max_retry_num": 15
},
"user_command": "shutdown -s -t 60",
"coolq_notify": false,
"coolq_settings": {
"msg_argument_name": "message",
"message_suffix": "追加的資訊",
"query": [
"http://127.0.0.1:5700/send_group_msg?access_token=abc&group_id=12345678",
"http://127.0.0.1:5700/send_group_msg?access_token=abc&group_id=87654321"
]
},
"telebot_notify": false,
"telebot_token": "",
"telebot_use_chat_id": false,
"telebot_chat_id": "",
"discord_notify": false,
"discord_token": "",
"plex_refresh": false,
"plex_url": "",
"plex_token": "",
"plex_section": "",
"plex_naming": false,
"faststart_movflags": false,
"audio_language": false,
"use_mobile_api": false,
"danmu": true,
"danmu_ban_words": [],
"check_latest_version": true,
"read_sn_list_when_checking_update": true,
"read_config_when_checking_update": true,
"ads_time": 25,
"mobile_ads_time": 25,
"use_dashboard": true,
"dashboard": {
"host": "127.0.0.1",
"port": 5000,
"SSL": false,
"BasicAuth": false,
"username": "admin",
"password": "admin"
},
"save_logs": true,
"quantity_of_logs": 7,
"config_version": 17.2,
"database_version": 2.0
}
sn_list.txt 配置(未使用)
上傳 log 檔案
2025-12-01 22:02:03 檢查更新 檢查更新成功
2025-12-01 22:02:03 使用命令行模式, 文件將保存在配置文件中指定的目錄下: F:\aniGamerPlus\bangumi
2025-12-01 22:02:03 讀取cookie 發現cookie檔案
2025-12-01 22:02:03 讀取cookie 已讀取cookie
2025-12-01 22:02:03 解析模式: sn=45916 Web解析
2025-12-01 22:02:03 SN 解析冷卻 5 秒
2025-12-01 22:02:08 收到新cookie: sn=45916
2025-12-01 22:02:08 用戶cookie刷新 ANIME_SIGN : sn=45916
2025-12-01 22:02:09 開始下載: sn=45916 《SI-VIS:英雄之聲 [5]》 識別到VIP賬戶, 立即下載
2025-12-01 22:02:09 收到新cookie: sn=45916
2025-12-01 22:02:09 用戶cookie刷新 ANIME_SIGN : sn=45916
2025-12-01 22:02:10 任務狀態: sn=45916 ERROR: 请求失败!except:
('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: invalid stored block lengths'))
3s后重试(最多重试3次)
2025-12-01 22:02:13 任務狀態: sn=45916 ERROR: 请求失败!except:
('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: invalid stored block lengths'))
3s后重试(最多重试3次)
2025-12-01 22:02:16 任務狀態: sn=45916 ERROR: 请求失败!except:
('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: invalid stored block lengths'))
3s后重试(最多重试3次)
2025-12-01 22:02:19 下載異常: sn=45916 發生未知異常: 任務狀態: sn=45916 请求失败次数过多!请求链接:
https://bahamut.akamaized.net/113906c41c1da36f9f402f7b7baed431919566a0/1080p/hdntl=exp=1764684129~acl=%2f*~data=hdntl,simon123456%3a45916%3a1%3a1%3a6868682e%3a0~hmac=bffb79919d23a325f156c15792e06d62595dca60bf3399e9c454af1d7c7c9178/chunklist_b5000000.m3u8
2025-12-01 22:02:19 下載異常: sn=45916 異常詳情:
Traceback (most recent call last):
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\response.py", line 401, in _decode
data = self._decoder.decompress(data)
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\response.py", line 88, in decompress
ret += self._obj.decompress(data)
zlib.error: Error -3 while decompressing data: invalid stored block lengths
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\models.py", line 816, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\response.py", line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\response.py", line 548, in read
data = self._decode(data, decode_content, flush_decoder)
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\response.py", line 407, in _decode
e,
urllib3.exceptions.DecodeError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: invalid stored block lengths'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\aniGamerPlus\Anime.py", line 290, in __request
f = self._session.get(req, headers=current_header, cookies=cookies, timeout=10)
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 747, in send
r.content
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\models.py", line 899, in content
self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b""
File "C:\Users\hsiangyu\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\models.py", line 820, in generate
raise ContentDecodingError(e)
requests.exceptions.ContentDecodingError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: invalid stored block lengths'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aniGamerPlus.py", line 405, in __download_only
anime.download(dl_resolution, dl_save_dir, realtime_show_file_size=realtime_show_file_size, classify=classify)
File "F:\aniGamerPlus\Anime.py", line 991, in download
self.__segment_download_mode(resolution)
File "F:\aniGamerPlus\Anime.py", line 635, in __segment_download_mode
m3u8_text = self.__request(self._m3u8_dict[resolution], no_cookies=True).text # 请求 m3u8 文件
File "F:\aniGamerPlus\Anime.py", line 293, in __request
raise TryTooManyTimeError('任務狀態: sn=' + str(self._sn) + ' 请求失败次数过多!请求链接:\n%s' % req)
Anime.TryTooManyTimeError: 任務狀態: sn=45916 请求失败次数过多!请求链接:
https://bahamut.akamaized.net/113906c41c1da36f9f402f7b7baed431919566a0/1080p/hdntl=exp=1764684129~acl=%2f*~data=hdntl,simon123456%3a45916%3a1%3a1%3a6868682e%3a0~hmac=bffb79919d23a325f156c15792e06d62595dca60bf3399e9c454af1d7c7c9178/chunklist_b5000000.m3u8
2025-12-01 22:02:19 任務失敗: sn=45916 title=SI-VIS:英雄之聲 [5] 10s后自動重啓,最多重試三次
Metadata
Metadata
Assignees
Labels
No labels
