diff --git a/src/Tracks/Factory.php b/src/Tracks/Factory.php index 0bfb58d..89df57e 100644 --- a/src/Tracks/Factory.php +++ b/src/Tracks/Factory.php @@ -40,8 +40,6 @@ private function guessTrackClass(string $uri): string { $classes = [ Spotify::class, - Google::class, - GoogleUnlimited::class, Deezer::class, Stream::class, ]; diff --git a/src/Tracks/Google.php b/src/Tracks/Google.php deleted file mode 100644 index b73ad03..0000000 --- a/src/Tracks/Google.php +++ /dev/null @@ -1,48 +0,0 @@ -getUri(), strlen(static::PREFIX)); - if ($pos = strpos($uri, ".mp3")) { - $uri = substr($uri, 0, $pos); - } - - return Helper::createMetaDataXml(Helper::TRACK_HASH . static::UNIQUE . "{$uri}", "-1", [ - "dc:title" => "", - "upnp:class" => "object.item.audioItem.musicTrack", - ], "38663"); - } -} diff --git a/src/Tracks/GoogleUnlimited.php b/src/Tracks/GoogleUnlimited.php deleted file mode 100644 index 53b7ed4..0000000 --- a/src/Tracks/GoogleUnlimited.php +++ /dev/null @@ -1,12 +0,0 @@ -factory->createFromUri($uri); - $this->assertInstanceOf(Google::class, $track); - } - - - public function testGoogleUnlimitedTrackUri(): void - { - $uri = "x-sonos-http:A0DvPDnowsEJN34xu9HkcfzBMGUd86HezVdklbzxKIUjyXkqC23MIzxiZu8-PtSkgc.mp3"; - $track = $this->factory->createFromUri($uri); - $this->assertInstanceOf(GoogleUnlimited::class, $track); - } - - public function testStreamTrackUri(): void { $uri = "x-sonosapi-stream:s200662?sid=254&flags=8224&sn=0";