jxxghp
2024-11-07 19:02:59 +08:00
parent c2220a7288
commit 188c541261
2 changed files with 6 additions and 3 deletions

View File

@@ -74,12 +74,13 @@
"name": "豆瓣想看",
"description": "同步豆瓣想看数据,自动添加订阅。",
"labels": "订阅",
"version": "1.8",
"version": "1.9",
"icon": "douban.png",
"author": "jxxghp",
"level": 2,
"v2": true,
"history": {
"v1.9": "请求豆瓣RSS时增加请求头",
"v1.8": "不同步在看条目",
"v1.7": "增强API安全性",
"v1.6": "同步历史记录支持手动删除需要主程序升级至v1.8.4+版本",

View File

@@ -34,7 +34,7 @@ class DoubanSync(_PluginBase):
# 插件图标
plugin_icon = "douban.png"
# 插件版本
plugin_version = "1.8"
plugin_version = "1.9"
# 插件作者
plugin_author = "jxxghp"
# 作者主页
@@ -509,7 +509,9 @@ class DoubanSync(_PluginBase):
continue
logger.info(f"开始同步用户 {user_id} 的豆瓣想看数据 ...")
url = self._interests_url % user_id
results = self.rsshelper.parse(url)
results = self.rsshelper.parse(url, headers={
"User-Agent": settings.USER_AGENT
})
if not results:
logger.warn(f"未获取到用户 {user_id} 豆瓣RSS数据{url}")
continue