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

Google News link return Google News icon instead of article image #44

Open
And96 opened this issue Feb 3, 2023 · 1 comment
Open

Google News link return Google News icon instead of article image #44

And96 opened this issue Feb 3, 2023 · 1 comment

Comments

@And96
Copy link

And96 commented Feb 3, 2023

Example url: https://news.google.com/rss/articles/CBMiiwFodHRwczovL3d3dy50dXR0b21lcmNhdG93ZWIuY29tL3NlcmllLWIvc3BhbC1iYXJpLWktY29udm9jYXRpLWRpLW1pZ25hbmktb3V0LW1hdGluby1lLW1haXRhLW1hLXNvbm8tYS1kaXNwb3NpemlvbmUtaS1udW92by1hY3F1aXN0aS0xNzg3ODI10gEA?oc=5

But same for all google news url.

it return this image
https://lh3.googleusercontent.com/J6_coFbogxhRI9iM864NL_liGXvsQp2AupsKei7z0cNNfDvGUmWUy20nuUhkREQyrpY4bEeIBuc=s0-w300

Whatsapp/Telegram link preview etc... return correct site article img.

metadata_fetch should allow redirect

@iraycd
Copy link

iraycd commented Oct 14, 2024

@And96
You should be looking for a server based solutions, not flutter or dart based solutions.

The Example URL has the open graph which is Google New URL.
Screenshot 2024-10-14 at 11 18 43 AM

WhatsApp and Telegram, do this from their backend services, so they can update this.
Also you need to specifically cover these use cases of redirecting. So, it has to cover all the edge cases.

My solution would be to use hybrid approach, use metadata_fetch for remaining and use server side solution for edge cases like these.

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

No branches or pull requests

2 participants