You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a website doesn't support oEmbed, this library falls back to document title and some meta tags (e.g. for description) instead of just leaving them null. This is problematic when other meta data sources (like OpenGraph) besides oEmbed, since getTitle() will always return a non-null value.
My current workaround is to check getVersion() as indicator whether data was fetched from an actual oEmbed endpoint, but that's quite hacky. It would be nice to have an option to disable default behavrior, e.g. through an argument like boolean useMetaTagFallbacks in the constructor of DefaultOEmbedProvider.
The text was updated successfully, but these errors were encountered:
If a website doesn't support oEmbed, this library falls back to document title and some meta tags (e.g. for description) instead of just leaving them
null
. This is problematic when other meta data sources (like OpenGraph) besides oEmbed, sincegetTitle()
will always return a non-null value.My current workaround is to check
getVersion()
as indicator whether data was fetched from an actual oEmbed endpoint, but that's quite hacky. It would be nice to have an option to disable default behavrior, e.g. through an argument likeboolean useMetaTagFallbacks
in the constructor ofDefaultOEmbedProvider
.The text was updated successfully, but these errors were encountered: