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

用API获取的115直链不可用 #5836

Closed
4 tasks done
EscapeU opened this issue Jan 6, 2024 · 10 comments
Closed
4 tasks done

用API获取的115直链不可用 #5836

EscapeU opened this issue Jan 6, 2024 · 10 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@EscapeU
Copy link

EscapeU commented Jan 6, 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.30.0

Driver used / 使用的存储驱动

115

Describe the bug / 问题描述

用API获取的115直链不可用

Reproduction / 复现链接

curl --location --request POST 'http://xxx.xxx.xxx.xxx:5244/api/fs/get'
--header 'Authorization: alist-token'
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)'
--header 'Content-Type: application/json'
--data-raw '{
"path": "/yourfilepath",
"password": "",
"page": 1,
"per_page": 0,
"refresh": false
}'
使用以上命令获取到的直链信息有误

Config / 配置

1704568800827

Logs / 日志

No response

@EscapeU EscapeU added the bug Something isn't working label Jan 6, 2024
Copy link

welcome bot commented Jan 6, 2024

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

@xhofe
Copy link
Collaborator

xhofe commented Jan 7, 2024

有什么误说清楚。

@xhofe xhofe added the question Further information is requested label Jan 7, 2024
Copy link

github-actions bot commented Jan 7, 2024

Hello @EscapeU, please input issue by template and add detail. Issues labeled by question will be closed if no activities in 3 days.
你好 @EscapeU,请按照issue模板填写, 并详细说明问题/日志记录/复现步骤/复现链接/实现思路或提供更多信息等, 3天内未回复issue自动关闭。

@EscapeU
Copy link
Author

EscapeU commented Jan 7, 2024

有什么误说清楚。

再alist中获取的下载直链可以下载,而通过api获得的直链不可用
图1为从alist中下载
image
图2为从api中获取
1704611270993
1704611374907

@xhofe
Copy link
Collaborator

xhofe commented Jan 7, 2024

获取链接与下载时需要使用相同的UA

@EscapeU
Copy link
Author

EscapeU commented Jan 7, 2024

获取链接与下载时需要使用相同的UA

我修改了UA再次尝试了一般依旧不可用
1704612908758

而且我测试从alist中获取的直链复制出去给其他设备是可以使用的但是,从api获取的我怎么修改UA都无法使用

@EscapeU
Copy link
Author

EscapeU commented Jan 7, 2024

如果需要相同UA的话 我昨晚尝试复制出直链给别人 别人的手机是可以下载的UA应该是不一样的
1d7f0cdee61beb462f78336d2ade735

@xhofe
Copy link
Collaborator

xhofe commented Jan 7, 2024

终端会把 & 转义成 \u002

@xhofe xhofe added invalid This doesn't seem right and removed question Further information is requested labels Jan 7, 2024
Copy link

github-actions bot commented Jan 7, 2024

Hello @EscapeU, your issue is invalid and will be closed.
你好 @EscapeU,你的issue无效,将被关闭。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2024
@sln162
Copy link

sln162 commented Jul 23, 2024

@EscapeU 我也遇到了,找到解决办法了吗?

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

No branches or pull requests

3 participants