HarryWang29 / tencentKeTang

腾讯课堂视频下载器
251 stars 69 forks source link

Windows 平台 0.2.8下载报错 #35

Closed Kevin-HYX closed 2 years ago

Kevin-HYX commented 2 years ago

_免费的可以正常下载,但是有一个小Bug,就是全部文件下载完成后新的TencentKeTang:不会跳出 付费内容仍不能下载,我是用微信登录的:

2022/07/26 20:21:35 download err:ffmpeg.Do: probe: exec.Run: ffprobe version 4.4-essentials_build-www.gyan.dev Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[hls @ 0000020c073623c0] Skip ('#EXT-X-VERSION:3')
[hls @ 0000020c073623c0] Opening 'https://ke.qq.com/cgi-bin/qcloud/get_dk?edk=CiAL7Cyd3tSI5jqjrJfQGNH6PXMbHcqEIx9w8EKZaWBDehCO08TA***ChiaoOvUBCokOTMyNDg4YmItOWZjYS00MzFiLWJiYjItNjFmMDhjYjNlYmM3&fileId=387702301565438699&keySource=VodBuildInKMS&token=dWluPTE0****NDExNTIzNTE3MzU2NTUzNztza2V5PTtwc2tleT07cGxza2V5PTtleHQ9O3VpZF90eXBlPTEwMTI7dWlkX29yaWdpbl91aWRfdHlwZT0yO3VpZF9vcmlnaW5fYXV0aF90eXBlPTA7Y2lkPTM0NTE0NjE7dGVybV9pZD0xMDM1ODgzODA7dm9kX3R5cGU9MDtwbGF0Zm9ybT0z' for reading
[hls @ 0000020c073623c0] Opening 'crypto+https://1258712167.vod2.myqcloud.com/25121a6avodtransbj125872***167/2576f59b387702301565438699/drm/v.f30742_0.ts?start=0&end=567775&type=mpegts&exper=0&sign=5cd4036d4a8fb06b42587b36dd3365cf&t=62EA6853&us=8868390814679763357' for reading
[hls @ 0000020c073623c0] Opening 'crypto+https://1258712167.vod2.myqcloud.com/25121a6avodtransbj125872***167/2576f59b387702301565438699/drm/v.f30742_0.ts?start=567776&end=1140991&type=mpegts&exper=0&sign=5cd4036d4a8fb06b42587b36dd3365cf&t=62EA6853&us=8868390814679763357' for reading
[hls @ 0000020c073623c0] Error when loading first segment 'https://1258712167.vod2.myqcloud.com/25121a6avodtransbj1258712167/2576f59b387702301565438699/drm/v.f30742_0.ts?start=0&end=567775&type=mpegts&exper=0&sign=5cd4036d4a8fb06b42587b36dd3365cf&t=62EA6853&us=8868390814679763357'
https://1258712167.vod2.myqcloud.com/25121a6avodtransbj1258712167/2576f59b387702301565438699/drm/voddrm.token.dWluPTE0NDExNTIzNTE3MzU2NTUzNztza2V5PTtwc2tleT07cGxza2V**5PTtleHQ9O3VpZF90eXBlPTEwMTI7dWlkX29yaWdpbl91aWRfdHlwZT0yO3VpZF9vcmlnaW5fYXV0aF90eXBlPTA7Y2lkPTM0NTE0NjE7dGVybV9pZD0xMDM1ODgzODA7dm9kX3R5cGU9MDtwbGF0Zm9ybT0z.v.f30742.m3u8?t=62EA6853&exper=0&us=8868390814679763357&sign=5cd4036d4a8fb06b42587b36dd3365cf: Invalid data found when processing input
: exit status 1
HarryWang29 commented 2 years ago

汗,今天光测了qq了,晚点再测下微信

Kevin-HYX commented 2 years ago

😐为啥我QQ登录连免费的都下不了了 一直提示这个: getVodUrl err: keTang.MediaInfo: describeRecVideoResp.Result.RecVideoInfo is empty 和没登录直接下载的情况一摸一样

HarryWang29 commented 2 years ago

我今天先用cookie测试的,明天微信和qq扫码都测一下吧,你试试看cookie?

Kevin-HYX commented 2 years ago

按照Readme做出来的cookie不好使, 然后我又去浏览器控制台复制document.cookie, 这次果然好使了 建议你改一下文档说明

HarryWang29 commented 2 years ago

ok,看来是扫码登录的时候cookie有点问题,后面找时间看看

Kevin-HYX commented 2 years ago

还有,上面所说的全部文件下载完成后新的TencentKeTang:不会跳出应该不存在,我测试的时候太着急了

HarryWang29 commented 2 years ago

按照Readme做出来的cookie不好使, 然后我又去浏览器控制台复制document.cookie, 这次果然好使了 建议你改一下文档说明

这个地方我想起来测试时遇到的一个情况,我是用Firefox做测试的时候,发现他在对于header中过长的字符串会省略,就是中间会有 xxxxx...yyyyy 这样的情况出现

Kevin-HYX commented 2 years ago

你的意思是复制的时候被省略了? 我想我这里应该没有这个情况 如果你那里https://ke.qq.com/cgi-bin/identity/info接口的内容可用的话 那可能是我复制的方式出错了 我访问那个接口,然后返回的是JSON字符串,并不是cookie的格式 是不是要经过改写成cookie的格式才可以使用?

Kevin-HYX commented 2 years ago

document.cookie 是一大串东西,和上述接口返回的不一样,我并不知道接口要的是那些内容,就一股脑全放上去了。

HarryWang29 commented 2 years ago

CleanShot 2022-07-27 at 11 13 16@2x 你复制的是这一部分么

Kevin-HYX commented 2 years ago

对,就是这个