diff --git a/src/Tracks/SpotifyPlaylist.php b/src/Tracks/SpotifyPlaylist.php index 42830df9..244a82a6 100644 --- a/src/Tracks/SpotifyPlaylist.php +++ b/src/Tracks/SpotifyPlaylist.php @@ -9,7 +9,7 @@ */ class SpotifyPlaylist extends Track { - const PREFIX = "x-rincon-cpcontainer:" . Helper::PLAYLIST_HASH; + const PREFIX = "x-rincon-cpcontainer:"; const REGION_EU = "2311"; const REGION_US = "3079"; @@ -28,7 +28,7 @@ public function __construct(string $uri) { # If this is a spotify playlist ID and not a URI then convert it to a URI now if (substr($uri, 0, strlen(self::PREFIX)) !== self::PREFIX) { - $uri = self::PREFIX . urlencode($uri); + $uri = self::PREFIX . Helper::PLAYLIST_HASH . urlencode($uri); } parent::__construct($uri); @@ -43,7 +43,7 @@ public function getMetaData(): string { $uri = substr($this->getUri(), strlen(self::PREFIX)); - return Helper::createMetaDataXml(Helper::PLAYLIST_HASH . "{$uri}", "-1", [ + return Helper::createMetaDataXml($uri, "-1", [ "dc:title" => "", "upnp:class" => "object.container.playlistContainer", ], static::$region);