Replies: 3 comments 7 replies
-
good job.. 不过tag竟然没有引用吗,我扒拉下来的metadata里似乎有.. |
Beta Was this translation helpful? Give feedback.
-
遍历每个视频寻找是否有分P,即 以及里面会调用 然而 |
Beta Was this translation helpful? Give feedback.
-
找到了很多 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
每当 batch 下载上百个视频时,可以明显感受到花费不少时间在拉取视频列表上
不是很清楚如何在 vscode 中调试 yutto...所以我试图直接看源代码追踪了一下到底访问了哪些 API...
当然我对这个项目了解不清楚,如果实则设计有深意恕我打扰...比如规避反爬之类的
比如
extract
collection此处的最大
ps
测试为 100,可以减少拉取次数https://github.com/z0z0r4/yutto/blob/8ce0ea8135e48332731737806dd3c36be73a1d83/src/yutto/api/collection.py#L45-L60
经我个人发现,
MetaData
中的tag
字段完全没被引用过,下载器也没这个需求才对,然而为了这个tag
字段,所有调用get_ugc_video_info
的视频,在获取信息时都必须等待get_ugc_video_tag
,实属浪费https://github.com/z0z0r4/yutto/blob/8ce0ea8135e48332731737806dd3c36be73a1d83/src/yutto/utils/metadata.py#L27-L41
https://github.com/z0z0r4/yutto/blob/8ce0ea8135e48332731737806dd3c36be73a1d83/src/yutto/api/ugc_video.py#L107-L108
对于这个关于
title
的 TODO 我抱有疑惑,可能开发者没发现(?)https://github.com/z0z0r4/yutto/blob/8ce0ea8135e48332731737806dd3c36be73a1d83/src/yutto/api/collection.py#L37-L38
无论是合集内每个视频的
title
还是合集整体的,都在 https://api.bilibili.com/x/polymer/web-space/seasons_archives_list 接口内有提供,例如 https://api.bilibili.com/x/polymer/web-space/seasons_archives_list?mid=6762654&season_id=39879&sort_reverse=false&page_num=1&page_size=10 返回的JSON.data.meta.name
是整体标题,JSON.data.archives[i].title
则是视频标题...Beta Was this translation helpful? Give feedback.
All reactions