Skip to the content.

首页 | Blogs | 项目合集 | Bilibili↗
←返回 | 创建:2022-08-14 | 最后更新:2024-11-02

前言

最近在整《猫和老鼠》资源฿的时候突发奇想能不能用第三方网盘接口来播放

研究

刚好我一直在用免费5TB,可以免费扩容25TB的huang1111网盘,这个调用了ArtPlayer来播放

以第23集(Springtime for thomas฿)为例,其调用URL为

https://pan.huang1111.cn/s/wzkgFK/video?name=023%20-%20Springtime%20for%20Thomas.mp4&share_path=%2FTom%20and%20Jerry%20-%20Complete%20Classic%20Collection%20-%20All%20161%20Episodes%20-%20mp4%E8%A7%86%E9%A2%91%2F%E5%8E%9F%E7%89%88%20480P%2F023%20-%20Springtime%20for%20Thomas.mp4

去掉https和share头以后就是

/wzkgFK/video?name=023%20-%20Springtime%20for%20Thomas.mp4&share_path=%2FTom%20and%20Jerry%20-%20Complete%20Classic%20Collection%20-%20All%20161%20Episodes%20-%20mp4%E8%A7%86%E9%A2%91%2F%E5%8E%9F%E7%89%88%20480P%2F023%20-%20Springtime%20for%20Thomas.mp4

其中wzkgFK是分享ID,video应该是视频播放器

那么,剩下的参数就尤为重要。分割一下:

name=023%20-%20Springtime%20for%20Thomas.mp4
share_path=%2FTom%20and%20Jerry%20-%20Complete%20Classic%20Collection%20-%20All%20161%20Episodes%20-%20mp4%E8%A7%86%E9%A2%91%2F%E5%8E%9F%E7%89%88%20480P%2F023%20-%20Springtime%20for%20Thomas.mp4

好像就两个?
UrlEncode解码以后就是

name=023 - Springtime for Thomas.mp4
share_path=/Tom and Jerry - Complete Classic Collection - All 161 Episodes - mp4视频/原版 480P/023 - Springtime for Thomas.mp4

很明显,share_path是对于分享链接的路径,与name的关系是share_path = /%path%/name

测试

按照上述规律,则对于24集(The Milky Waif฿)的链接应该是//pan.huang1111.cn/s/wzkgFK/video?name=024%20-%20The%20Milky%20Waif.mp4&share_path=%2FTom%20and%20Jerry%20-%20Complete%20Classic%20Collection%20-%20All%20161%20Episodes%20-%20mp4%E8%A7%86%E9%A2%91%2F%E5%8E%9F%E7%89%88%20480P%2F024%20-%20The%20Milky%20Waif.mp4
好家伙,Copilot在我转码的时候就把链接拼出来了…………
试试


好家伙,还真成功了……

总结

想要白嫖huang1111的视频服务,就先分享一个文件夹,文件夹里面放视频
之后打开分享链接,预览视频,网址拷贝即可用

后记

光这点分析肯定不够。
查看元素可以得到第24集(The Milky Waif฿)的播放器参数是

src="/api/v3/share/preview/wzkgFK?path=%2FTom%20and%20Jerry%20-%20Complete%20Classic%20Collection%20-%20All%20161%20Episodes%20-%20mp4%E8%A7%86%E9%A2%91%2F%E5%8E%9F%E7%89%88%20480P%2F024%20-%20The%20Milky%20Waif.mp4"

完整的元素是

<video class="art-video" preload="metadata" playsinline="" src="/api/v3/share/preview/wzkgFK?path=%2FTom%20and%20Jerry%20-%20Complete%20Classic%20Collection%20-%20All%20161%20Episodes%20-%20mp4%E8%A7%86%E9%A2%91%2F%E5%8E%9F%E7%89%88%20480P%2F024%20-%20The%20Milky%20Waif.mp4" __idm_id__="5103617"></video>

Class不做深究,perload不知道干啥,playsinline也不知道,但是这个src可以肯定是视频的地址,__idm_id__似乎是一个随机的字符串。

拼凑完整的src就是

https://pan.huang1111.cn/api/v3/share/preview/wzkgFK?path=%2FTom%20and%20Jerry%20-%20Complete%20Classic%20Collection%20-%20All%20161%20Episodes%20-%20mp4%E8%A7%86%E9%A2%91%2F%E5%8E%9F%E7%89%88%20480P%2F024%20-%20The%20Milky%20Waif.mp4

URLENCODE解码就是

https://pan.huang1111.cn/api/v3/share/preview/wzkgFK?path=/Tom and Jerry - Complete Classic Collection - All 161 Episodes - mp4视频/原版 480P/024 - The Milky Waif.mp4

PotPlayer打开提示

就奇怪

IDM下载一下

EMM,这就奇怪了……UrlEncode编码后再试一遍
也行不通……