Folo icon indicating copy to clipboard operation
Folo copied to clipboard

豆瓣小组图片无法加载

Open banshaobao opened this issue 1 year ago • 5 comments

Describe the bug

豆瓣小组图片无法加载,按下F12,可以看到大量重试请求 image 打开原链接。图片是秒加载的 image

Feed Info

https://rsshub.app/douban/group/648102/essence

Reproduction Video

No response

App Type

Web

Version

v0.0.1-alpha.18

Operating System

Windows 11

Browser Info

chrome 129

Validations

  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.

Contributions

  • [ ] I am willing to submit a PR to fix this issue
  • [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

banshaobao avatar Sep 28 '24 19:09 banshaobao

排查了一下。 follow这边请求的图片链接是 https://img1.doubanio.com/view/group_topic/l/public/p662652870.jpg 而豆瓣使用的图片链接是 https://img1.doubanio.com/view/group_topic/l/public/p662652870.webp

banshaobao avatar Sep 28 '24 19:09 banshaobao

我想是由于请求的图片格式不一样导致的

banshaobao avatar Sep 28 '24 19:09 banshaobao

加载豆瓣的webp格式的图片是秒开的。而请求jpg是一点一点刷出来的

banshaobao avatar Sep 28 '24 19:09 banshaobao

I think this is a problem with douban. When I access the image directly, it loads very slowly too.

ScreenShot 2024-09-29 09 14 26

hyoban avatar Sep 29 '24 01:09 hyoban

经过测试,douban对跨域流量做了限速,使用curl的测试如下:

curl  "https://img1.doubanio.com/view/group_topic/l/public/p662652870.webp" -H "Referer: https://www.douban.com/" --output 1.webp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  233k  100  233k    0     0   397k      0 --:--:-- --:--:-- --:--:--  399k
curl  "https://img1.doubanio.com/view/group_topic/l/public/p662652870.webp" --output 1.webp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  233k  100  233k    0     0  10183      0  0:00:23  0:00:23 --:--:--  8874

zxhd863943427 avatar Sep 29 '24 03:09 zxhd863943427

经过测试,douban对跨域流量做了限速

The new image proxy service should solve this problem.

We are doing an AB Test for the new image proxy service, you may be able to browse images normally after the full release.

https://github.com/user-attachments/assets/a59664f8-6ef5-4f6f-ab99-d677d1af4b55

hyoban avatar Sep 29 '24 06:09 hyoban

我平常主要是使用web版。这个在web版有修复吗

banshaobao avatar Sep 29 '24 09:09 banshaobao

It works on the web too.

hyoban avatar Sep 29 '24 10:09 hyoban

排查了一下。 follow这边请求的图片链接是 https://img1.doubanio.com/view/group_topic/l/public/p662652870.jpg 而豆瓣使用的图片链接是 https://img1.doubanio.com/view/group_topic/l/public/p662652870.webp

关于格式问题。请问下为什么要把webp改为jpg呢。为什么不使用原图链接呢。这个是出于什么考量呢

banshaobao avatar Sep 29 '24 12:09 banshaobao

等会我录制一个关于豆瓣在follow的视频。在web上目前并没有得到改善

banshaobao avatar Sep 29 '24 12:09 banshaobao

https://github.com/user-attachments/assets/6ee84fbb-ada5-44b4-8b36-c87514bf5b2d

banshaobao avatar Sep 29 '24 13:09 banshaobao

视频已上传

banshaobao avatar Sep 29 '24 13:09 banshaobao