Remove obsolete support for Spotify playlists
authorMarcel Werk <burntime@woltlab.com>
Thu, 10 Aug 2023 14:14:33 +0000 (16:14 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 10 Aug 2023 14:14:33 +0000 (16:14 +0200)
These links are already handled by the plain Spotify provider.

com.woltlab.wcf/mediaProvider.xml

index 585504427ab071484d304be20c0ca5e558b070f1..d5262f9a20ec8d333767b5d282050fe7cb266b69 100644 (file)
@@ -43,12 +43,6 @@ https?://vimeo\.com/groups/[^/]+/videos/(?P<ID>\d+)/?(?P<hash>(?(?<=/)[a-zA-Z0-9
                        <regex><![CDATA[https?://(?:www\.)?(?:instagram\.com|instagr\.am)/p/(?<ID>[a-zA-Z0-9_-]+)]]></regex>
                        <html><![CDATA[<blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/p/{$ID}/" data-instgrm-version="14"><a href="https://www.instagram.com/p/{$ID}/">https://www.instagram.com/p/{$ID}/</a></blockquote><script async src="https://www.instagram.com/embed.js"></script>]]></html>
                </provider>
-               <provider name="spotify-playlist">
-                       <title>Spotify Playlist</title>
-                       <regex><![CDATA[https?://play.spotify.com/user/(?<USER>[0-9a-zA-Z]+)/playlist/(?<ID>[0-9a-zA-Z]+)
-https?://open.spotify.com/user/(?<USER>[0-9a-zA-Z]+)/playlist/(?<ID>[0-9a-zA-Z]+)]]></regex>
-                       <html><![CDATA[<iframe width="300" height="380" src="https://embed.spotify.com/?uri=spotify:user:{$USER}:playlist:{$ID}" frameborder="0" allowtransparency="true"></iframe>]]></html>
-               </provider>
                <provider name="spotify">
                        <title>Spotify</title>
                        <regex><![CDATA[https?://play.spotify.com/(.*/|)(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+)
@@ -79,4 +73,7 @@ https?://www.twitch.tv/[a-zA-Z0-9]+/v/(?<VIDEO>[0-9]+)]]></regex>
 <script>require(['WoltLabSuite/Core/Wrapper/FacebookSdk'],function(FB){FB.XFBML.parse()})</script>]]></html>
                </provider>
        </import>
+       <delete>
+               <provider name="spotify-playlist"/>
+       </delete>
 </data>