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

Merge pull request !7 from AshenAshes/master
This commit is contained in:
zhiyu 2024-03-22 08:00:48 +00:00 committed by Gitee
commit 2ef7944cfb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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":