LeonardoCardoso / SwiftLinkPreview

It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.
https://leocardz.com/swift-link-preview-5a9860c7756f
MIT License
1.37k stars 196 forks source link

Fix for youtube url fetch metadata issue #131

Closed nafis042 closed 3 years ago

nafis042 commented 3 years ago

This pull request fixes youtube url fetch metadata issue. adding just a user-Agent field in the request header fixes the issue. i don't think it will break anything. if anything breaks please comment here

LeonardoCardoso commented 3 years ago

@nafis042 Thanks. I will test it ASAP.

nafis042 commented 3 years ago

Instagram uses open graph tags and for this, I think new regex expressions must be included. I made a quick fix for the Instagram image tag but this should be handled properly for video, title, description as well.

kodekarim commented 3 years ago

@nafis042 tested Insta link, working great ​​​​​​​

LeonardoCardoso commented 3 years ago

@nafis042 @abdulKarim002 Cool! Thanks! I will have a look at it this weekend and push a new version. Thanks for the contribution.