Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For reasons I can't quite discern, Libsyn' oEmbed URL isn't detected as a regular oEmbed provider. This patch adds Libsyn as a registered special provider.
Example Libsyn oEmbed URL:
https://oembed.libsyn.com/embed?item_id=8634992
Per Libsyn support:
Tested with the oEmbed plugin, which uses Essence to render oEmbed in Craft CMS.
I'd love to understand what is needed to address this as a regular oEmbed provider, but I'm not entirely sure that the discovery method above is what is stopping Essence from parsing.
I did notice that the Libsyn oEmbed
link
type istext/json+oembed
, whereas the spec denotesapplication/json+oembed
. Essence seems to search specifically forjson
in thetype
field though, from what I can see (in Oembed.php line 214's string filter), which seems like it should work?My PHP is a little rusty, so... :) At any rate, this patch seems to work fine, and happy to help test or report to Libsyn why their file isn't working with the default Essence code.