Skip to content

Commit

Permalink
Drop the google classes as the service has been shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan3dc committed Nov 19, 2024
1 parent 5ed789b commit f476b34
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 80 deletions.
2 changes: 0 additions & 2 deletions src/Tracks/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ private function guessTrackClass(string $uri): string
{
$classes = [
Spotify::class,
Google::class,
GoogleUnlimited::class,
Deezer::class,
Stream::class,
];
Expand Down
48 changes: 0 additions & 48 deletions src/Tracks/Google.php

This file was deleted.

12 changes: 0 additions & 12 deletions src/Tracks/GoogleUnlimited.php

This file was deleted.

18 changes: 0 additions & 18 deletions tests/Tracks/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
use duncan3dc\DomParser\XmlWriter;
use duncan3dc\Sonos\Tracks\Deezer;
use duncan3dc\Sonos\Tracks\Factory;
use duncan3dc\Sonos\Tracks\Google;
use duncan3dc\Sonos\Tracks\GoogleUnlimited;
use duncan3dc\Sonos\Tracks\Spotify;
use duncan3dc\Sonos\Tracks\Stream;
use duncan3dc\Sonos\Tracks\Track;
Expand Down Expand Up @@ -53,22 +51,6 @@ public function testDeezerTrackUri(): void
}


public function testGoogleTrackUri(): void
{
$uri = "x-sonos-http:_dklxfo-EJN34xu9HkcfzBMGUd86HezVdklbzxKIUjyXkqC23MIzxiZu8-PtSkgc.mp3";
$track = $this->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";
Expand Down

0 comments on commit f476b34

Please sign in to comment.