jejacks0n/mercury

Change from Youtube in embed code, need to adapt a specific line in Mercury

thomasmalbaux opened this issue · 0 comments

Youtube embed code no longer specify the protocol (see that Google Group discussion: https://productforums.google.com/forum/#!topic/youtube/U8td_YIrbCQ).
When I try to add a youtube video in Mercury via Media > Youtube url, it fails. Workaround is to edit html code and remove the "http:" or use Youtube embed code directly.

I feel that this line (https://github.com/jejacks0n/mercury/blob/master/app/assets/javascripts/mercury/modals/insertmedia.js.coffee#L118) should be updated and the protocol variable removed or improved. I'm dont feel confident to do it so I hope raising the issue and potential clue to solve it will help :-)

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1597530-change-from-youtube-in-embed-code-need-to-adapt-a-specific-line-in-mercury?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github).