sur950 / any_link_preview

A flutter Plugin/Package to show the preview of any web link that starts with HTTP/HTTPS. Mostly useful for application that had chat.
MIT License
72 stars 72 forks source link

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

Open And96 opened 1 year ago

And96 commented 1 year ago

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.

AnyLinkPreview should allow redirect

sur950 commented 1 year ago

Hi @And96

Version 3.0.1 doesn't support multi-redirect support of meta extractor site links. So this is giving false data in return. I will try adding this in upcoming versions.

Thanks for bringing this to my notice. Cheers!

sur950 commented 6 months ago

Hi, I have debugged this further and noticed the following details:

The response is getting success with 200 OK status and not 3XX redirect status codes and also there's no redirect URL specified in the headers of the response. Redirect might have been triggered from the client side via the JavaScript of the hosting. HTTP plugin that we are using can't handle the client side triggered redirects.

We would need to solution this custom from our end. This takes some time. I am calling-out community members those who want to contribute to this new feature request, Please comment here, We can connect over call & can add this feature.

Thanks