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

Traceback (most recent call last): #192

Open
mrvson opened this issue Mar 9, 2024 · 0 comments
Open

Traceback (most recent call last): #192

mrvson opened this issue Mar 9, 2024 · 0 comments

Comments

@mrvson
Copy link

mrvson commented Mar 9, 2024

Receive: {
"fileName": "EP2: A love so beautiful - Watch HD Video Online - WeTV",
"linksurl": "https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BBA7BD9BA784FC72BDB0C726AF5B44A4DF4CB3353B5A31CC864BD22E8E195EFC12E551F71FF7DE3CA3C63B48C20721FD01/k003090bi3p.321003.ts.m3u8?ver=4|English|https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BBC62A9075FA69A6B3A6E370D78213FCC02D10251BC0F63C5B2907D8ADA71AA4D86148E09B40E04EE09891C60E8EF119B5/k003090bi3p.53032.vtt?ver=4|Chinese%20(Simplified)|https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BB22C3FD5B6F1C9E7BBE2755B4296ADD187E001D229364D74BA0B88CA7AF6BD580C106105E78C9577BFA71BC5C1C823672/k003090bi3p.53028.vtt?ver=4|Chinese%20(Traditional)|https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BB22C3FD5B6F1C9E7BBE2755B4296ADD185B13BA859882208B6803B3BAA4B83EAF6667EFD473E6AB242BB6A0F58C9A0F12/k003090bi3p.53025.vtt?ver=4|Thai|https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BB22C3FD5B6F1C9E7BBE2755B4296ADD186F07377E7F2D70281EE994DB20D9D732F26265AB355AB3C8BB5F7DF4659CB142/k003090bi3p.53026.vtt?ver=4|Vietnamese|https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BBC62A9075FA69A6B3A6E370D78213FCC03F6648082CB151E087C64D02F0AED546EDE743CE0BA7E72E1615DD7D71A414A7/k003090bi3p.53037.vtt?ver=4|Indonesian|https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BB22C3FD5B6F1C9E7BBE2755B4296ADD18A632723396258450A3A43E467141FE6BA06F9DBCF3D6E9C8C567DC3B1D44EA9D/k003090bi3p.53027.vtt?ver=4|Hindi|https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BB22C3FD5B6F1C9E7BBE2755B4296ADD1874D2BB18AD3AD538DA5806770C451882EDB38ABD19F290A94451FF8CD9A446B4/k003090bi3p.53022.vtt?ver=4|Arabic|https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BBC62A9075FA69A6B3A6E370D78213FCC0DCC2863617DD75DDC3ACB757638BD94256BD7E0E96B4B8C73E8EC6E3078E7B28/k003090bi3p.53030.vtt?ver=4|Portuguese|https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BBC62A9075FA69A6B3A6E370D78213FCC0C567F1DD696B6E17FF50F3C96CCC8DFC6C265649BA43C1D7163927318528EB58/k003090bi3p.53031.vtt?ver=4|Spanish|https://cffaws.wetvinfo.com/01A86763ACD71E044DFCAE12BFD5CED2BB8391A50B52A6F8F04F10BEB00E95754A0D4E6D46D5D2D90C47FEE7A6B9903021CCD3A0ACB6AB4D0A4F6A36E9C270E99C/k003090bi3p.53059.vtt?ver=4",
"data": "...",
"type": "link"
}

Handle: "EP2: A love so beautiful - Watch HD Video Online - WeTV"

匹配到252段视频,开始下载
-- dispatcher/downloadHls
并行8线程下载
进度: [########################################] 100% 351.5/-MB 24.8MB/s 28s
正在合并视频
匹配到10个字幕,开始下载
并行8线程下载
进度: [ ] 0% 0.0/-MB 0KB/s 0s

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

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

1 participant