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

[BUG] Web Interface Unable to Display Thumbnail (via google img source) #6084

Open
dr0id123 opened this issue Feb 1, 2024 · 4 comments
Open

Comments

@dr0id123
Copy link

dr0id123 commented Feb 1, 2024

Describe the bug
Freshrss is unable to display feed which has a thumbnail set as follows:

https://news.google.com/api/attachments/CC8iK0NnNVZNM2QwUldkWlNXSnJSVmhLVFJDb0FSaXNBaWdCTWdZQjRJYnRVUVE=-w400-h224-p-df

You will notice that google may be doing some sort of redirection? I will point out that the feed when accessed from Freshrss on a mobile app of choice (e.g., feedme) displays fine.

To Reproduce
Use/create a feed that uses the above link/img as an example. View in Freshrss native web interface with thumbnail view enabled in the theme.

Expected behavior
Thumbnail should display

Screenshots
If applicable, add screenshots to help explain your problem.

Environment information (please complete the following information):

  • Browser: [Chrome/Edge]
  • FreshRSS version: [1.23.1]
    missing
@Alkarex
Copy link
Member

Alkarex commented Feb 4, 2024

Hello,
Could you share an example of feed with that problem?

@dr0id123
Copy link
Author

I would rather avoid posting a direct URL to my freshrss instance. However, to make this easy to reproduce, create an XPATH scrape. Here are the details:

Feed Title: IBM - Google News
Feed Type: HTML + Xpath (Web Scraping)
Feed URL: https://news.google.com/search?q=ibm&hl=en-US&gl=US&ceid=US%3Aen

Xpath for finding news items: //article
Item Title: .//div[1]/div[2]/div/a
Item Content: concat(.//div[1]/div[2]/div/a, " - ", .//div[1]/div[2]/div/div/div[1]/div/div)
Item Link: .//div[1]/div[2]/div/a/@href
Item Thumbnail: .//div[1]/figure/img/@src
Item Date: .//time/@datetime

@Alkarex
Copy link
Member

Alkarex commented Apr 7, 2024

A part of the problem (generating the wrong links - relative instead of absolute) has been fixed in #6270

But I guess the image is prevented from loading maybe due to Sec-Fetch-Mode and/or Referer.

It might work with the FreshRSS Image Proxy extension https://github.com/FreshRSS/Extensions/tree/master/xExtension-ImageProxy

@Alkarex
Copy link
Member

Alkarex commented Apr 7, 2024

Maybe @Frenzie could give it a try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants