File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,14 @@ public function getType()
5555 }
5656 }
5757
58+ /**
59+ * {@inheritdoc}
60+ */
61+ public function getProviderName ()
62+ {
63+ return 'Internet Archive ' ;
64+ }
65+
5866 /**
5967 * {@inheritdoc}
6068 */
@@ -76,9 +84,9 @@ public function getAuthorName()
7684 */
7785 public function getImagesUrls ()
7886 {
79- $ images = (array ) $ this ->api ->get ('misc ' , ' image ' );
87+ $ images = (array ) $ this ->bag ->get ('misc[ image] ' );
8088
81- foreach (array_keys ((array ) $ this ->api ->get ('files ' )) as $ url ) {
89+ foreach (array_keys ((array ) $ this ->bag ->get ('files ' )) as $ url ) {
8290 $ images [] = $ url ;
8391 }
8492
Original file line number Diff line number Diff line change @@ -14,4 +14,15 @@ public function testOne()
1414 ]
1515 );
1616 }
17+
18+ public function testTwo ()
19+ {
20+ $ this ->assertEmbed (
21+ 'https://archive.org/details/librivoxaudio ' ,
22+ [
23+ 'type ' => 'rich ' ,
24+ 'providerName ' => 'Internet Archive ' ,
25+ ]
26+ );
27+ }
1728}
You can’t perform that action at this time.
0 commit comments