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

For YouTube Links, it is not fetching Video Thumbnail #128

Closed heydc7 closed 3 years ago

heydc7 commented 3 years ago

Video Thumbnails is not being fetched.......

VadimIdeasoft commented 3 years ago

Experiencing the same behavior for a +- week now as well.

LeonardoCardoso commented 3 years ago

I will have a look at it when I have time. The code is there, so feel free to explore it, find the issue and open a PR. Contribution is always welcome.

heydc7 commented 3 years ago

I have done some debugging with SwiftLinkPreview & YouTube videos.

In RESPONSE, there are no images URL fetched in .image and .images.

LeonardoCardoso commented 3 years ago

@dhanrajdc7 I might have a clue how to solve this.

Maybe YouTube has changed the metatag on their website or changed how they label images. You could try fixing it by identifying the change in the html source code of a video page, then please add this new parsing option to the library and create a PR.

I am currently on vacations and have no computer around.

heydc7 commented 3 years ago

Ok, I will give it a try

LeonardoCardoso commented 3 years ago

Seems to be fixed with the new version. Simulator Screen Shot - iPhone 11 Pro - 2021-02-01 at 12 29 57