Closed epicstar closed 1 month ago
It is possible I may have time to port the ombed code from unfurl.js to this library.
If I have the time to do this, would you be ok with me creating a PR for this? Thank you!
Happy to accept a PR for this. Otherwise, I will try and look at it in the next couple days.
oEmbed support added. Published to NuGet as version 1.1.
Hello @pburrows, I'm testing the newest version of the library this with this code snippet in my repo at the moment:
var unfurledUrl = await _unfurler.Unfurl("https://forms.office.com/r/YLPA60FDtJ", new UnfurlOptions { LoadOEmbed = true, OEmbedHttpClient = _httpClient }); // my httpClient is injected in DI... it's being used correctly
my unfurledUrl.OEmbed
and unfurledUrl.OEmbedLink
are null. Is this expected? This seems like a bug to me.
Do note I tried youtube links with the oEmbed option turned on and they work as expected. Thank you!
Crisis averted. I looked at your unit tests and saw you used my link as one of the test cases. Once I added MaximumRedirects = 2
to the UnfurlOptions
, it started working as expected.
MaximumRedirects
isn't a required option in https://github.com/jacktuck/unfurl, but I'm good with using this argument. Thank you!
Yeah, the default number of redirects is 0.
Hello, first of all, thank you for the library.
I was wondering if it was possible to add oEmbed support like unfurl.js? We are actually coming across some URLs that have oEmbed but not opengraph or twitter cards.
For example: https://forms.office.com/r/YLPA60FDtJ
The oEmbed link returns:
Thank you!