Skip to content

Support disabling fallback to html document title #1

@CedricReichenbach

Description

@CedricReichenbach

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions