Óscar Otero

Results 324 comments of Óscar Otero

It looks ok. Check if this configuration value is already sent to curl resource (here: https://github.com/oscarotero/Embed/blob/v3.x/src/Http/CurlDispatcher.php#L139), or maybe disabling CURLOPT_AUTOREFERER.

Try changing the User-Agent for a real browser UA. Some sites blocks request from unknow user agents

Hi. Thanks for your contribution. I just have a couple of changes: - The Code detector is not correctly implemented. See other examples, like https://github.com/oscarotero/Embed/blob/master/src/Adapters/Gist/Detectors/Code.php - Please, add a test...

Mmm, I think your code is using the v3.x version of Embed, instead of v4.x. In v4.x, all code detectors must return a EmbedCode instance (no matter if the code...

Looks like the php on your server doesn't support typed properties. Are you sure you're using php 7.4?

No idea. I think it's a server configuration thing, but I cannot help you.

Ok, I see. Thanks for the valuable info @cleentfaar I'm going to wait for Youtube. Changing the priority of the detectors may fix this issue but open others. The philosophy...

What I mean is that, even if the oEmbed endpoint fails, we can get a embed code: because Embed get the video url from opengraph:

Sorry, I don't understand. Doesn't this code work for you? ```php $info = $embed->get($url); $embedHtml = $info->code; ``` I mean, you don't have to get the different apis directly (oembed,...