微博解析增加对文章的判断

This commit is contained in:
Aluxes 2024-03-22 15:45:21 +08:00
parent dec52457e0
commit 50c512d873
No known key found for this signature in database
GPG Key ID: 6696152F9C003087

View File

@ -957,6 +957,8 @@ export class tools extends plugin {
if (page_info) {
// 视频
const videoUrl = page_info.urls?.mp4_720p_mp4 || page_info.urls?.mp4_hd_mp4;
// 文章
if (!videoUrl) return true
try {
this.downloadVideo(videoUrl, false, {
"User-Agent":