mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix 修复馒头未读消息1
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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": "站点消息历史存库",
|
||||
|
||||
@@ -37,7 +37,7 @@ class SiteUnreadMsg(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "Synomail_A.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.4"
|
||||
plugin_version = "1.5"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user