fix 修复馒头未读消息1

This commit is contained in:
thsrite
2024-04-22 10:23:34 +08:00
parent f17a4aa0f9
commit 41810c76c5
5 changed files with 6 additions and 5 deletions

View File

@@ -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

View File

@@ -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": "站点消息历史存库",

View File

@@ -37,7 +37,7 @@ class SiteUnreadMsg(_PluginBase):
# 插件图标
plugin_icon = "Synomail_A.png"
# 插件版本
plugin_version = "1.4"
plugin_version = "1.5"
# 插件作者
plugin_author = "thsrite"
# 作者主页

View File

@@ -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,

View File

@@ -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