elixir-oembed icon indicating copy to clipboard operation
elixir-oembed copied to clipboard

provide clearer error message when oembed is disabled

Open DanielDent opened this issue 5 years ago • 0 comments

When a YouTube video has embedding disabled, the oembed endpoint returns a value to indicate that the request is unauthorized. It would be helpful if that did not result in the same {:error, "oEmbed not found"} return value that occurs for invalid URLs as well -- being able to tell the end-user "this is a valid video URL but it has embedding disabled" would be preferable.

DanielDent avatar Jun 01 '20 01:06 DanielDent