Skip to content

Commit 95e2857

Browse files
committed
removed 500px oembed fix as is not broken anymore
1 parent c3bd79d commit 95e2857

File tree

3 files changed

+7
-57
lines changed

3 files changed

+7
-57
lines changed

src/Adapters/N500px.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Embed\Providers;
1010
use Embed\Utils;
1111

12-
class N500px extends Adapter implements AdapterInterface
12+
class N500px extends Webpage implements AdapterInterface
1313
{
1414
/**
1515
* {@inheritdoc}
@@ -50,15 +50,4 @@ public function getHeight()
5050
return $this->imageHeight;
5151
}
5252
}
53-
54-
/**
55-
* {@inheritdoc}
56-
*/
57-
protected function run()
58-
{
59-
//order is important
60-
$this->addProvider('oembed', new Providers\OEmbed());
61-
$this->addProvider('opengraph', new Providers\OpenGraph());
62-
$this->addProvider('html', new Providers\Html());
63-
}
6453
}

src/Providers/OEmbed/N500px.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

tests/N500Test.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ class N500Test extends TestCaseBase
55
public function testPhoto()
66
{
77
$this->assertEmbed(
8-
'https://500px.com/photo/127505793/nude-girl-retro-by-david-dubnitskiy',
8+
'https://500px.com/photo/138251239/taganay-park-by-daniel-kordan',
99
[
10-
'imageWidth' => 280,
11-
'image' => 'https://drscdn.500px.org/photo/127505793/w%3D280_h%3D280/c415195ae6156c9ba2a3db37130c22be?v=2',
12-
'imageHeight' => 280,
13-
'authorName' => 'David Dubnitskiy',
10+
'title' => 'Taganay park by Daniel Kordan',
11+
'image' => 'https://drscdn.500px.org/photo/138251239/m%3D900/70e5e5bfded84619fc86ac901dab18a4',
12+
'imageWidth' => 900,
13+
'imageHeight' => 600,
14+
'authorName' => 'Kordan',
1415
'type' => 'photo',
1516
]
1617
);

0 commit comments

Comments
 (0)