jaysonlong/webvideo-downloader

目前外掛字幕無法下載

Opened this issue · 0 comments

目前外掛字幕無法下載,會顯示一下錯誤

匹配到1个字幕,开始下载
并行8线程下载


Traceback (most recent call last):
File "E:\ffmpeg-20191217-bd83191-win64-shared\bin\webvideo-downloader-master\webvideo-downloader-master\downloader\dispatcher.py", line 167, in dispatch
self.download(url, fileName, data)
File "E:\ffmpeg-20191217-bd83191-win64-shared\bin\webvideo-downloader-master\webvideo-downloader-master\downloader\dispatcher.py", line 139, in download
targetFileName = self.handleSubtitles(subtitles, fileName, targetFileName, headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ffmpeg-20191217-bd83191-win64-shared\bin\webvideo-downloader-master\webvideo-downloader-master\downloader\dispatcher.py", line 108, in handleSubtitles
self.downloader.downloadAll(subtitleUrls, subtitleNames, headers, self.hlsThreadCnt)
File "E:\ffmpeg-20191217-bd83191-win64-shared\bin\webvideo-downloader-master\webvideo-downloader-master\downloader\tools\downloader.py", line 174, in downloadAll
self._waitUtilFinish()
File "E:\ffmpeg-20191217-bd83191-win64-shared\bin\webvideo-downloader-master\webvideo-downloader-master\downloader\tools\downloader.py", line 105, in _waitUtilFinish
raise self.threadPool.exception
File "C:\Users\admin1\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ffmpeg-20191217-bd83191-win64-shared\bin\webvideo-downloader-master\webvideo-downloader-master\downloader\tools\downloader.py", line 123, in _downloadRange
rangeSize = rangeSize or int(response.headers['Content-Length'])
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "C:\Users\admin1\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\structures.py", line 52, in getitem
return self._store[key.lower()][1]
~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'content-length'