Sommerregen / grav-plugin-mediaembed

This plugin embeds several media sites (e.g. YouTube, Vimeo, Soundcloud) by only providing the URL to the medium.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting a message instead of the Media

chekobil opened this issue · comments

Hi,
I´m not sure if I´m doing something wrong but this is what I get when I try to use the plugin with this link
![UMO](https://soundcloud.com/jagjaguwar/unknown-mortal-orchestra-cant-keep-checking-my-phone)
mediaembed::fa51c2aeb9c6e6276d8a6fc9095d5497::1::M

Even with your Flickr example I get the same message
![](https://www.flickr.com/photos/chris_gin/6585842063) mediaembed::fa51c2aeb9c6e6276d8a6fc9095d5497::2::M
I tried to install the plugin manually and through CLI, same message ...
I was in Grav 0.9.23 and update to 0.9.26, and got the same message in both

Hm, it looks like something is broken. I will check that this evening and provide a new release.

UPDATE: Actually I found the problem. I forgot to remove some code after testing. If you delete the following three lines

if ( $page->slug() !== 'mediaembed' ) {
  return;
}

in https://github.com/Sommerregen/grav-plugin-mediaembed/blob/master/mediaembed.php#L139, it will probably run as expected.

It does,
without this line everything works fine ... thanks