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

4k 下载相关修改,和一个BUG,影响到有时 音频会下载不下来 #37

Open
xincheng213618 opened this issue Jun 13, 2020 · 1 comment
Labels
BUG Something isn't working DONE Problem solved or answered NEW New feature requirements

Comments

@xincheng213618
Copy link

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)

4k:
Video.py 中
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
}
增加 'fourk':1, 参数 可以获得4k 分辨率的解析视频

修改默认访问参数:
if quality is None:
quality = Util.Config.Quality.v4k
和 tool.py 中
Quality:
v4k =('120','超清4K')
INDEX = {
16: V360P,
32: V480P,
64: V720P,
74: V720P60,
80: V1080P,
112: V1080Px,
116: V1080P60,
120: v4k,
}
INDEX 增加 120:v4k

@wolfbolin
Copy link
Owner

感谢你的反馈,我会尽快修改补充

@wolfbolin wolfbolin added BUG Something isn't working NEW New feature requirements OPEN The problem remains unsolved DONE Problem solved or answered and removed OPEN The problem remains unsolved labels Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working DONE Problem solved or answered NEW New feature requirements
Projects
None yet
Development

No branches or pull requests

2 participants