|
@@ -25,6 +25,9 @@ class Deezercom extends ElementFactory
|
25
|
25
|
/**
|
26
|
26
|
* URL_PLAYLIST: http://www.deezer.com/fr/music/playlist/18701350
|
27
|
27
|
* URL_ALBUM: http://www.deezer.com/fr/music/pantera/far-beyond-driven-80398
|
|
28
|
+ *
|
|
29
|
+ * http://www.deezer.com/fr/music/the-delta/Thing%20EP-379324
|
|
30
|
+ * http://www.deezer.com/fr/album/379324
|
28
|
31
|
*/
|
29
|
32
|
public function retrieveDatas()
|
30
|
33
|
{
|
|
@@ -58,11 +61,13 @@ class Deezercom extends ElementFactory
|
58
|
61
|
);
|
59
|
62
|
curl_setopt_array( $ch, $options );
|
60
|
63
|
$result = json_decode(curl_exec($ch));
|
61
|
|
-
|
|
64
|
+
|
62
|
65
|
if (isset($result->cover))
|
63
|
66
|
{
|
64
|
67
|
$this->element->setData(Element::DATA_THUMB_URL, $result->cover);
|
65
|
68
|
}
|
|
69
|
+
|
|
70
|
+
|
66
|
71
|
}
|
67
|
72
|
}
|
68
|
73
|
|
|
@@ -84,7 +89,7 @@ class Deezercom extends ElementFactory
|
84
|
89
|
|
85
|
90
|
public function proceedThumbnailUrl()
|
86
|
91
|
{
|
87
|
|
- if (($thumb = $this->element->getData(Element::DATA_TYPE)))
|
|
92
|
+ if (($thumb = $this->element->getData(Element::DATA_THUMB_URL)))
|
88
|
93
|
{
|
89
|
94
|
$this->element->setThumbnailUrl($thumb);
|
90
|
95
|
}
|