Skip to content

Commit 03dab07

Browse files
committed
Change provider name from 'Music on TIDAL' to 'TIDAL'
1 parent 62bd050 commit 03dab07

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
namespace Embed\Adapters\Tidal\Detectors;
5+
6+
use Embed\Detectors\ProviderName as Detector;
7+
8+
class ProviderName extends Detector
9+
{
10+
public function detect(): string
11+
{
12+
return 'TIDAL';
13+
}
14+
}

src/Adapters/Tidal/Extractor.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
namespace Embed\Adapters\Tidal;
5+
6+
use Embed\Extractor as Base;
7+
8+
class Extractor extends Base
9+
{
10+
public function createCustomDetectors(): array
11+
{
12+
return [
13+
'providerName' => new Detectors\ProviderName($this),
14+
];
15+
}
16+
}

src/ExtractorFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class ExtractorFactory
3131
'bandcamp.com' => Adapters\Bandcamp\Extractor::class,
3232
'twitter.com' => Adapters\Twitter\Extractor::class,
3333
'x.com' => Adapters\Twitter\Extractor::class,
34+
'tidal.com' => Adapters\Tidal\Extractor::class,
3435
];
3536
private array $customDetectors = [];
3637
private array $settings;

0 commit comments

Comments
 (0)