From f476b344aa2046c62bb9540ab1867b025aea3067 Mon Sep 17 00:00:00 2001 From: Craig Duncan Date: Tue, 19 Nov 2024 09:14:06 +0000 Subject: [PATCH] Drop the google classes as the service has been shutdown --- src/Tracks/Factory.php | 2 -- src/Tracks/Google.php | 48 ---------------------------------- src/Tracks/GoogleUnlimited.php | 12 --------- tests/Tracks/FactoryTest.php | 18 ------------- 4 files changed, 80 deletions(-) delete mode 100644 src/Tracks/Google.php delete mode 100644 src/Tracks/GoogleUnlimited.php diff --git a/src/Tracks/Factory.php b/src/Tracks/Factory.php index 0bfb58d5..89df57e9 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 b73ad039..00000000 --- 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 53b7ed40..00000000 --- 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";