Skip to content

fix(139): honor use_large_thumbnail for family/personal/group clouds#9562

Merged
skysliences merged 1 commit into
AlistGo:mainfrom
okatu-loli:fix/139-large-thumbnail
Jul 10, 2026
Merged

fix(139): honor use_large_thumbnail for family/personal/group clouds#9562
skysliences merged 1 commit into
AlistGo:mainfrom
okatu-loli:fix/139-large-thumbnail

Conversation

@okatu-loli

Copy link
Copy Markdown
Collaborator

问题 / Problem

139 移动云盘的「是否使用大缩略图」(use_large_thumbnail) 开关仅在 personal_new 路径生效;家庭云(family)、个人云(personal)、群组(group)始终使用小图 thumbnailURL,开关无效。对应 #9391

The use_large_thumbnail toggle only took effect on the personal_new path; family/personal/group listings always used the small thumbnailURL.

改动 / Change

139 的 queryContentList 系列接口本身就返回 bigthumbnailURL 字段(此前在结构体里被注释掉)。本 PR:

  • 解析 Content / CloudContentbigthumbnailURL
  • 新增 pickThumbnail 辅助函数,在 use_large_thumbnail 开启且存在大图 URL 时使用大图,否则回退到小图(不存在大图时行为与现状一致,零回归);
  • 应用到 family / personal / group 三条 List 路径。

验证 / Verification

go build ./drivers/139/go vet 通过。

Fixes #9391

The use_large_thumbnail toggle was only wired into the personal_new
listing path; the family (家庭云), personal and group listings always
used the small thumbnailURL and ignored the option.

The 139 queryContentList APIs already return a bigthumbnailURL field
alongside thumbnailURL, so parse it and select the large variant via a
shared pickThumbnail helper when use_large_thumbnail is enabled, falling
back to the regular thumbnail when no large URL is provided.

Fixes AlistGo#9391
@skysliences skysliences merged commit 488426d into AlistGo:main Jul 10, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

移动云盘使用家庭云时是否使用大缩略图的开关不生效

3 participants