diff --git a/README.md b/README.md index f1a351a..7780568 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ ### 插件新增 - 站点数据统计 1.4 (无未读消息版本)(废弃) -- 站点未读消息 1.4 +- 站点未读消息 1.5 - [云盘Strm生成 3.7](docs%2FCloudStrm.md) - [Strm文件模式转换 1.0](docs%2FStrmConvert.md) - 清理订阅缓存 1.0 diff --git a/package.json b/package.json index 447c18f..0ef38e7 100644 --- a/package.json +++ b/package.json @@ -28,11 +28,12 @@ "SiteUnreadMsg": { "name": "站点未读消息", "description": "发送站点未读消息。", - "version": "1.4", + "version": "1.5", "icon": "Synomail_A.png", "author": "thsrite", "level": 2, "history": { + "v1.5": "修复馒头未读消息1", "v1.4": "sync主仓库", "v1.3": "feat mtorrent", "v1.2": "站点消息历史存库", diff --git a/plugins/siteunreadmsg/__init__.py b/plugins/siteunreadmsg/__init__.py index cff826d..c804001 100644 --- a/plugins/siteunreadmsg/__init__.py +++ b/plugins/siteunreadmsg/__init__.py @@ -37,7 +37,7 @@ class SiteUnreadMsg(_PluginBase): # 插件图标 plugin_icon = "Synomail_A.png" # 插件版本 - plugin_version = "1.4" + plugin_version = "1.5" # 插件作者 plugin_author = "thsrite" # 作者主页 diff --git a/plugins/siteunreadmsg/siteuserinfo/mtorrent.py b/plugins/siteunreadmsg/siteuserinfo/mtorrent.py index 758fc7c..f000688 100644 --- a/plugins/siteunreadmsg/siteuserinfo/mtorrent.py +++ b/plugins/siteunreadmsg/siteuserinfo/mtorrent.py @@ -102,7 +102,7 @@ class MTorrentSiteUserInfo(ISiteUserInfo): self.download = int(user_info.get("memberCount", {}).get("downloaded") or '0') self.ratio = user_info.get("memberCount", {}).get("shareRate") or 0 self.bonus = user_info.get("memberCount", {}).get("bonus") or 0 - self.message_unread = 1 + self.message_unread = 0 self._torrent_seeding_params = { "pageNumber": 1, diff --git a/plugins/siteunreadmsg/siteuserinfo/nexus_php.py b/plugins/siteunreadmsg/siteuserinfo/nexus_php.py index 783f92b..e5efd06 100644 --- a/plugins/siteunreadmsg/siteuserinfo/nexus_php.py +++ b/plugins/siteunreadmsg/siteuserinfo/nexus_php.py @@ -217,7 +217,7 @@ class NexusPhpSiteUserInfo(ISiteUserInfo): # 是否存在下页数据 next_page = None - next_page_text = html.xpath('//a[contains(.//text(), "下一页") or contains(.//text(), "下一頁")]/@href') + next_page_text = html.xpath('//a[contains(.//text(), "下一页") or contains(.//text(), "下一頁") or contains(.//text(), ">")]/@href') if next_page_text: next_page = next_page_text[-1].strip() # fix up page url