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

使用download-post功能时报错 #198

Closed
infotion opened this issue Dec 3, 2024 · 3 comments · Fixed by #199
Closed

使用download-post功能时报错 #198

infotion opened this issue Dec 3, 2024 · 3 comments · Fixed by #199
Labels
bug Something isn't working

Comments

@infotion
Copy link

infotion commented Dec 3, 2024

Describe the bug

使用download-post下载某个特定post时会有python部分内容的报错,sync-creator部分则没有问题。

Command & Configuration

命令:

ktoolbox download_post https://kemono.su/fanbox/user/17715043/post/4193199

配置:

Configuration(api=APIConfiguration(scheme='https', netloc='kemono.su', statics_netloc='img.kemono.su', files_netloc='kemono.su', path='/api/v1', timeout=5.0, retry_times=3, retry_interval=2.0), downloader=DownloaderConfiguration(scheme='https', timeout=30.0, encoding='utf-8', buffer_size=102400, chunk_size=1024, temp_suffix='tmp', retry_times=10, retry_stop_never=False, retry_interval=3.0, use_bucket=False, bucket_path=WindowsPath('.ktoolbox/bucket_storage')), job=JobConfiguration(count=10, post_dirname_format='[{published}]{title}', post_structure=PostStructureConfiguration(attachments=WindowsPath('.'), content_filepath=WindowsPath('content.txt')), mix_posts=False, sequential_filename=True, filename_format='{}', allow_list=set(), block_list=set()), logger=LoggerConfiguration(path=None, level='DEBUG', rotation='1 week'), ssl_verify=False, json_dump_indent=4, use_uvloop=True)

Screenshots

7dd4aa11dcae0b1cb1ec66a68fdae09e

Platform

  • OS: Windows
  • Python Version: 3.11.5
  • KToolBox Version: 0.11.0

(不知道是不是我本地的Python乱配置了什么但是就是运行不了这个命令)

@Ljzd-PRO Ljzd-PRO added the bug Something isn't working label Dec 3, 2024
@Ljzd-PRO
Copy link
Owner

Ljzd-PRO commented Dec 3, 2024

确实是Bug,找到原因了,download-postget-post 命令用的API和 sync-creator 不同,而前者的返回数据格式搞错了,所以不能正常用,后者是没问题

@Ljzd-PRO
Copy link
Owner

Ljzd-PRO commented Dec 3, 2024

#180 也是相同的问题

@Ljzd-PRO
Copy link
Owner

Ljzd-PRO commented Dec 3, 2024

确实是Bug,找到原因了,download-postget-post 命令用的API和 sync-creator 不同,而前者的返回数据格式搞错了,所以不能正常用,后者是没问题

Kemono API 更新了

@Ljzd-PRO Ljzd-PRO linked a pull request Dec 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants