Fix spotify links not being recognized properly
authorIceQ1337 <IceQ1337@users.noreply.github.com>
Mon, 7 Aug 2023 13:33:07 +0000 (15:33 +0200)
committerIceQ1337 <IceQ1337@users.noreply.github.com>
Mon, 7 Aug 2023 13:33:07 +0000 (15:33 +0200)
com.woltlab.wcf/mediaProvider.xml

index cb64372ed0a231d40ae913bae778d723045ae98a..b804682a93281141e398c7332fa3da7479ab5b24 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>
-                       <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 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>
                </provider>
                <provider name="twitch">
                        <title>Twitch</title>