diff --git a/package.json b/package.json index 0871bda..1812a97 100644 --- a/package.json +++ b/package.json @@ -835,12 +835,13 @@ "name": "极影视助手", "description": "极影视功能扩展", "labels": "媒体库", - "version": "1.3", + "version": "1.4", "icon": "zvideo.png", "author": "DzAvril", "level": 1, "v2": true, "history": { + "v1.4": "修复请求失败后返回值数量不正确的问题", "v1.3": "降低对豆瓣接口的请求频率", "v1.2": "修复无法获取豆瓣评分的问题", "v1.1": "支持将极影视评分修改为豆瓣评分", diff --git a/plugins/zvideohelper/DoubanHelper.py b/plugins/zvideohelper/DoubanHelper.py index e144a38..a8ca05e 100644 --- a/plugins/zvideohelper/DoubanHelper.py +++ b/plugins/zvideohelper/DoubanHelper.py @@ -75,7 +75,7 @@ class DoubanHelper: response = RequestUtils(headers=self.headers).get_res(url) if not response.status_code == 200: logger.error(f"搜索 {title} 失败 状态码:{response.status_code}") - return None + return None, None, None # self.headers["Cookie"] = response.cookies soup = BeautifulSoup(response.text.encode('utf-8'), 'lxml') title_divs = soup.find_all("div", class_="title") diff --git a/plugins/zvideohelper/__init__.py b/plugins/zvideohelper/__init__.py index 2da1933..f2a455e 100644 --- a/plugins/zvideohelper/__init__.py +++ b/plugins/zvideohelper/__init__.py @@ -31,7 +31,7 @@ class ZvideoHelper(_PluginBase): # 插件图标 plugin_icon = "zvideo.png" # 插件版本 - plugin_version = "1.3" + plugin_version = "1.4" # 插件作者 plugin_author = "DzAvril" # 作者主页