Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crypt 驱动中的缩略图功能,缺失sign参数 #6607

Open
4 tasks done
x4455 opened this issue Jun 11, 2024 · 4 comments · May be fixed by #6611
Open
4 tasks done

Crypt 驱动中的缩略图功能,缺失sign参数 #6607

x4455 opened this issue Jun 11, 2024 · 4 comments · May be fixed by #6611
Labels
bug Something isn't working

Comments

@x4455
Copy link

x4455 commented Jun 11, 2024

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.35.0

Driver used / 使用的存储驱动

Crypt

Describe the bug / 问题描述

在 Crypt 驱动上,开启缩略图功能 #5284 的同时开启签名功能,那么缩略图将无法正常加载。

浏览器F12分析,访问 本地存储 时,看到的缩略图加载行为,有如下参数。
https://alist.********/d/********/A.mp4?type=thumb&sign=********
而访问 Crypt存储 时,缩略图加载不含sign参数。
https://alist.********/d/crypt/.thumbnails/A.mp4.webp

推测:缩略图URL没有携带sign参数被拒绝

Reproduction / 复现链接

无可供访问链接。

预先准备好视频文件和缩略图,按照 Crypt 驱动缩略图代码,如下存放。

/crypt/A.mp4
/crypt/.thumbnails/A.mp4.webp

开启签名功能状态下,网格视图不显示缩略图。
浏览器F12 分析相关加载行为的连接:状态200;类型json;大小51B
访问疑似缩略图加载行为URL https://alist.********/d/crypt/.thumbnails/A.mp4.webp 得到以下内容

{
    "code": 401,
    "message": "expire missing",
    "data": null
}

在关闭签名功能后即刻恢复正常。

Config / 配置

{
  "id": 1,
  "mount_path": "/crypt",
  "order": 1,
  "driver": "Crypt",
  "cache_expiration": 0,
  "status": "work",
  "addition": "{\"filename_encryption\":\"standard\",\"directory_name_encryption\":\"true\",\"remote_path\":\"/********\",\"password\":\"********\",\"salt\":\"********\",\"encrypted_suffix\":\".bin\",\"filename_encoding\":\"base64\",\"thumbnail\":true,\"show_hidden\":false}",
  "remark": "",
  "modified": "********",
  "disabled": false,
  "enable_sign": true,
  "order_by": "",
  "order_direction": "",
  "extract_folder": "",
  "web_proxy": false,
  "webdav_policy": "native_proxy",
  "proxy_range": false,
  "down_proxy_url": ""
}

Logs / 日志

No response

@x4455 x4455 added the bug Something isn't working label Jun 11, 2024
Copy link

welcome bot commented Jun 11, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

@j2rong4cn j2rong4cn linked a pull request Jun 12, 2024 that will close this issue
@ypq123456789
Copy link

这个功能到底该怎么使用啊大佬

@x4455
Copy link
Author

x4455 commented Jun 26, 2024

这个功能到底该怎么使用啊大佬

功能只会去尝试加载图片。要你自己主动处理缩略图,webp格式,按路径放文件。下面是路径例子。

~/6607.mp4
~/.thumbnails/6607.mp4.webp

@ypq123456789
Copy link

这个功能到底该怎么使用啊大佬

功能只会去尝试加载图片。要你自己主动处理缩略图,webp格式,按路径放文件。下面是路径例子。

~/6607.mp4
~/.thumbnails/6607.mp4.webp

如何用 ffmpeg 生成每个文件夹文件在对应位置呢?网盘文件是不是必须要下载到本地生成啊🤔谢谢大佬🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants