Closed matzeeable closed 2 years ago
The oEmbed provder of SoundCloud also supports playlist URLs from api.soundcloud.com:
api.soundcloud.com
Reproduce:
The embed code looks like this:
<iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/336397030&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/billieeilish" title="Billie Eilish" target="_blank" style="color: #cccccc; text-decoration: none;">Billie Eilish</a> · <a href="https://soundcloud.com/billieeilish/sets/playlist" title="playlist" target="_blank" style="color: #cccccc; text-decoration: none;">playlist</a></div>
From the embed URL we can extract the API url https://api.soundcloud.com/playlists/336397030 and pass it to the oEmbed provider:
https://api.soundcloud.com/playlists/336397030
https://soundcloud.com/oembed?format=json&url=https://api.soundcloud.com/playlists/336397030
Thanks for the PR!
The oEmbed provder of SoundCloud also supports playlist URLs from
api.soundcloud.com
:Reproduce:
The embed code looks like this:
From the embed URL we can extract the API url
https://api.soundcloud.com/playlists/336397030
and pass it to the oEmbed provider:https://soundcloud.com/oembed?format=json&url=https://api.soundcloud.com/playlists/336397030