-
Notifications
You must be signed in to change notification settings - Fork 56
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
video_obj = json_data['data']['dash']['video'][-1] #14
Comments
我错了,会尽快改正的 |
已修复,详见 v0.2.1 |
收到
wolfbolin <notifications@github.com> 于2019年10月15日周二 下午2:10写道:
… 已修复,详见 v0.2.1 <https://github.com/wolfbolin/BiliUtil#v020>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14?email_source=notifications&email_token=AGBYTXXVSQL4L7YV6BX63RTQOVNFDA5CNFSM4IUYW44KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBHRJIQ#issuecomment-542053538>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGBYTXSXID2HEAE23OREGBDQOVNFDANCNFSM4IUYW44A>
.
|
因为B站更新了4k下载,我就一直在想这个东西该如何进行改造才能支持4k下载。
在研究的过程中,发现了一个BUG Video.py中有一个规则应该是出错了
if audio_obj['backup_url']:
for backup in audio_obj['backup_url']:
self.video.append(backup)
这里应该修正为。否则会出现音频拿不到的情况,具体原因未知。
if audio_obj['backup_url']:
for backup in audio_obj['backup_url']:
self.audio.append(backup)
因为 copy.deepcopy 这里封装的函数我看不懂。
4k下载对整体的程式不需要更改太多 只需要增加 'fourk':1, 参数就可以了
http_request = {
'info_obj': Util.VIDEO,
'params': {
'avid': str(self.album.aid),
'cid': str(self.cid),
'qn': quality[0],
'otype': 'json',
'fourk':1,
'fnver': 0,
'fnval': 16
},
'cookie': cookie
}
对映的限制器也需要增加 120 4k 作为访问限制。
经过几个UP全部视频测试,修改后可以正常下载4k 和正常解析。
后面附带我修正的rar 和调用。
此致
敬上
|
文件不小心进行了加密,请看后面的
陈信成 <xincheng213618@gmail.com> 于2020年6月14日周日 上午12:19写道:
… 因为B站更新了4k下载,我就一直在想这个东西该如何进行改造才能支持4k下载。
在研究的过程中,发现了一个BUG Video.py中有一个规则应该是出错了
if audio_obj['backup_url']:
for backup in audio_obj['backup_url']:
self.video.append(backup)
这里应该修正为。否则会出现音频拿不到的情况,具体原因未知。
if audio_obj['backup_url']:
for backup in audio_obj['backup_url']:
self.audio.append(backup)
因为 copy.deepcopy 这里封装的函数我看不懂。
4k下载对整体的程式不需要更改太多 只需要增加 'fourk':1, 参数就可以了
http_request = {
'info_obj': Util.VIDEO,
'params': {
'avid': str(self.album.aid),
'cid': str(self.cid),
'qn': quality[0],
'otype': 'json',
'fourk':1,
'fnver': 0,
'fnval': 16
},
'cookie': cookie
}
对映的限制器也需要增加 120 4k 作为访问限制。
经过几个UP全部视频测试,修改后可以正常下载4k 和正常解析。
后面附带我修正的rar 和调用。
此致
敬上
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我在出入了cookie 之后,依旧下载的是640*380的视频,我在定位视频的原因的时候,发现需要将
video_obj = json_data['data']['dash']['video'][-1]
改成
video_obj = json_data['data']['dash']['video'][0]
之后使用起来就可以完成了
The text was updated successfully, but these errors were encountered: