修复批量下载功能

This commit is contained in:
JoeamAmier
2023-09-09 17:38:41 +08:00
parent 8e66c1d293
commit 81b4b390ef
4 changed files with 11 additions and 6 deletions

View File

@@ -56,6 +56,9 @@ class XHS:
if not html:
return {}
data = self.explore.run(html)
if not data:
print(f"获取作品数据失败: {url}")
return {}
if data["作品类型"] == "视频":
self.__get_video(data, html, download)
else: