Bug with Soundcloud Embed feature (Simple Fix?)

Hello!

Just wanted to let the staff know of a small bug in the forum's Soundcloud embedding:

Dunno if this is something easy to fix in Xenforo, but private Soundcloud links are glitchy in the forums, even with a secret key attached. They'll be unable to play and show a greyed out button inframe when hovered over, which occasionally goes away after a few minutes of waiting. This problem seems to have only been occurring in the last week or so, but I can't say for sure. I believe the error lies in a small syntax oddity in the code that renders the iframe for Soundcloud embeds, and fortunately, it's a one character fix (I hope).

Here's an example of a link which doesn't reliably load:


Here's the existing forum iframe generated for that link:
HTML:
<iframe data-s9e-mediaembed="soundcloud" allowfullscreen="" scrolling="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/331220375&amp;secret_token=s-bNf5I" style="border:0;height:166px;max-width:900px;width:100%"></iframe>


And here's how I managed to fix it within my own testing: The only difference is that the &amp; character between the track number and "secret_token" has been exchanged for a ? character. This reliably fixes the problem in my own experience, but of course users can't embed working HTML, so there's not much I can do to fix it in my own use.
HTML:
<iframe data-s9e-mediaembed="soundcloud" allowfullscreen="" scrolling="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/331220375?secret_token=s-bNf5I" style="border:0;height:166px;max-width:900px;width:100%"></iframe>


I would appreciate if this could be worked on sometime (assuming there isn't some deeper problem that makes this more difficult), seeing as I've been able to reliably fix it with the simple change above. The inability to share private Soundcloud links is troubling to me, and I assume other musical members of this community interested in sharing music among this community.

Thanks in advance for any help!


EDIT: After a bit more tinkering, I think I've found the exact source of this error. I assume the forum is using S9E's mediaembed library. In rendering.php (source available at https://raw.githubusercontent.com/s9e/phpbb-ext-mediaembed/master/rendering.php ), there are two instances of "
&amp;secret_token=" that need to be replaced with "?secret_token=" when dealing with the Soundcloud API, I assume due to a change in their interpreter.
Just bumping to remind anyone who might be able to help with this issue. My OP contains what I believe to be the line of code causing the bug, or at least a starting point for troubleshooting.

Thanks again for any assistance.

Original thread: https://forums.rpgmakerweb.com/threads/bug-with-soundcloud-embed-feature-simple-fix.82184/