Commit Graph

65 Commits

Author SHA1 Message Date
YuBai
4e8d3f1318 Merge branch 'fix-undefined-actor-error' into fix/search-all-api-and-login-init 2026-03-04 18:25:45 +08:00
YuBai
c375512903 fix: restore All search type and initialize login state on startup
- Switch AllPageSearchPageFetcher from m.douban.com/rexxar/api/v2/search
  (returns 403 need_login) to www.douban.com/j/search (works with cookies)
- Update AllFirstPageSearchResultPageParser and OtherAllPageSearchResultPageParser
  to use SearchParserHandler.parseSearchJson() matching the j/search response format,
  replacing the old Rexxar-specific SearchParserHandlerV2 parsing logic
- Add await this.userComponent.login() in onload() so login state is initialized
  on startup, fixing false isLogin()=false causing "need login for next page" errors

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 18:20:58 +08:00
YuBai
99d4170626 fix: 为其他 handler 添加数组空值检查
在 parseVariable 方法中为所有数组字段的 .map() 调用添加 (field || []) 保护,

防止当字段为 undefined 时调用 .map() 报错。
2026-02-02 11:26:47 +08:00
YuBai
297ccd33cf fix: 当 JSON-LD 解析失败时添加回退机制
豆瓣现在对未登录请求返回反爬虫验证页面,导致 JSON-LD 解析返回 undefined。

添加从 OG meta 标签提取基本信息的回退机制,防止代码崩溃。

同时给所有数组字段添加默认值 || []。
2026-02-02 11:25:56 +08:00
YuBai
a0eccf7370 fix: handle() 方法 catch 块返回 undefined 而不是错误对象
当 HTTP 请求失败时,返回错误对象会导致上层代码尝试访问错误对象的属性,

造成 TypeError。改为返回 undefined 让上层代码正确处理空值情况。
2026-02-02 11:24:07 +08:00
ffc93a4a13 feat: 调整别名的转义 2025-11-09 23:16:34 +08:00
08749116f3 feat: 附件(图片)文件保存本地支持自定义
fix: 修复有些图片无法下问题
fix: 修复同步汇总文件中文件名和真实保存不一致问题
feat: 调整别名的转义
2025-11-09 22:43:17 +08:00
16b9ff581d docs: add documents website
Some checks failed
Deploy Jekyll site to Pages / build (push) Has been cancelled
Deploy Jekyll site to Pages / deploy (push) Has been cancelled
2025-07-24 00:01:09 +08:00
dd1648c20a fix #151 笔记存放位置,无法使用自定义字段 2025-06-05 14:00:28 +08:00
c09f96d3b8 fix #143 #132 #124
1. 增加游戏同步功能
2. 修复自定义参数配置问题
3. 增加搜索默认类型
4. 增加全部搜索为空时的提示
2025-03-11 14:45:14 +08:00
9fe0d1bfc9 fix #139
1. 优化导入配置,增加更多导入时的选项
2. 优化导入结果的显示,现在会在结果文本中显示具体的条件
2025-03-06 18:54:01 +08:00
vran
132e47f2b2 fix: remove leading and and trailing whitespace of person name 2025-01-22 13:36:14 +08:00
wanxuping
8437aee2e1 fix #94 移动端加载失败 2024-12-26 12:53:28 +08:00
d98a24545e Fixed clicking the next page has no effect 2024-07-15 23:04:32 +08:00
232439b64c fix search error 2024-07-11 10:19:14 +08:00
d0ed8cf1f3 fix mac os search error 2024-07-10 18:33:55 +08:00
e1ae4cd88c
Merge pull request #113 from ruinshe/add-templated-attachment-support
support variables in attachment
2024-05-16 12:29:34 +08:00
290eaaa45b fix fetch data error 2024-05-16 01:56:17 +08:00
1d74714e6e fix fetch data error 2024-05-16 01:51:29 +08:00
661e8e7e2e add picture bed 2024-05-16 00:09:33 +08:00
Ruins He
561e42fe73
feat(attachments): add template support for attachment folder support
Signed-off-by: Ruins He <lyhypacm@gmail.com>
2024-05-15 19:14:30 +08:00
58ced6cd1f fix game/book/movie import error 2024-03-21 21:18:28 +08:00
ba5e6a8ee2 add new setting for {{scoreStar}} and {{myRatingStar}} 2023-12-30 20:20:19 +08:00
f2278b14d9 add new setting for {{scoreStar}} and {{myRatingStar}} 2023-12-29 23:35:32 +08:00
b4f41bcae8 add new setting for {{scoreStar}} and {{myRatingStar}} 2023-12-29 18:30:19 +08:00
b39e0a18a3 add new setting for {{scoreStar}} and {{myRatingStar}} 2023-12-29 18:26:53 +08:00
446f405a79 add new setting for {{scoreStar}} and {{myRatingStar}} 2023-12-29 18:25:01 +08:00
c2ce0c5e0d fix actor/director's name lost space charactor 2023-12-26 16:40:39 +08:00
446a37e03b add array display type
fix write enter to editor when search item
fix desc has "\"     " error
2023-12-26 15:18:11 +08:00
ae7c16430d fix name error 2023-12-21 23:31:36 +08:00
de439d2cdc fix note import error 2023-12-21 22:57:46 +08:00
5d288bda14 fix search by type error 2023-12-21 18:18:39 +08:00
f0c1421f5d fix search error 2023-12-21 13:27:16 +08:00
1b5b9bb0b3 fix search error 2023-12-21 10:25:28 +08:00
96fe6d6771 fix search error 2023-12-18 23:28:14 +08:00
HatMatrix
5dd02b1433
Update DoubanBookLoadHandler.ts
Adjust book descriptions to use more complete data
2023-11-11 16:03:05 +08:00
331ff38cd9 fix custom variables 2023-10-11 14:14:54 +08:00
4bf64965bb 1. add array spilt , start, end 2023-09-24 00:34:51 +08:00
0dd68ff8cb 1. add array spilt , start, end 2023-09-23 10:12:07 +08:00
5c345efa1d 1. fix sync movie fetch wrong type
2. fix can not get the comment of book or movie
2023-09-23 09:21:46 +08:00
01a386dd6b change: the way of request 2023-09-20 13:16:24 +08:00
44697ac05a feature: theater
function: HttpUtil
2023-09-20 09:54:29 +08:00
6c52606417 feature: theater
feature: imageData.url
2023-08-30 18:10:37 +08:00
240f71f635 fix: cover image do not show error 2023-07-10 23:06:53 +08:00
ace218402c add community qr code 2023-06-20 10:02:12 +08:00
5c9b37e9e6 feature: search pageable 2023-02-16 11:39:40 +08:00
980fae30ed feature: search pageable 2023-02-16 11:11:44 +08:00
e19fbc648c feature: search next page 2023-02-15 22:38:37 +08:00
a99e34c367 fix: search isbn error 2023-02-13 00:15:06 +08:00
7471edea0f add variable: yearPublished 2022-12-26 23:21:34 +08:00