Update the spotify embed to an interactive audio player
authorIceQ1337 <IceQ1337@users.noreply.github.com>
Mon, 7 Aug 2023 13:34:49 +0000 (15:34 +0200)
committerIceQ1337 <IceQ1337@users.noreply.github.com>
Mon, 7 Aug 2023 13:34:49 +0000 (15:34 +0200)
com.woltlab.wcf/mediaProvider.xml

index b804682a93281141e398c7332fa3da7479ab5b24..d914d78d08f6fc2b17eb6ec12ae12f1968cdca5c 100644 (file)
@@ -51,9 +51,9 @@ https?://open.spotify.com/user/(?<USER>[0-9a-zA-Z]+)/playlist/(?<ID>[0-9a-zA-Z]+
                </provider>
                <provider name="spotify">
                        <title>Spotify</title>
-                       <html><![CDATA[<iframe width="300" height="380" src="https://embed.spotify.com/?uri=spotify:{$TYPE}:{$ID}" frameborder="0" allowtransparency="true"></iframe>]]></html>
                        <regex><![CDATA[https?://play.spotify.com/(.*/|)(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+)
 https?://open.spotify.com/(.*/|)(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+)]]></regex>
+                       <html><![CDATA[<iframe style="border-radius:12px" src="https://open.spotify.com/embed/{$TYPE}/{$ID}" width="100%" height="352" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>]]></html>
                </provider>
                <provider name="twitch">
                        <title>Twitch</title>