Browse Source

Anomalie #570: Deezer: bugs

Sevajol Bastien 12 years ago
parent
commit
f15aa655d8
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/Muzich/CoreBundle/Factory/Elements/Deezercom.php

+ 7 - 2
src/Muzich/CoreBundle/Factory/Elements/Deezercom.php View File

25
   /**
25
   /**
26
    *  URL_PLAYLIST: http://www.deezer.com/fr/music/playlist/18701350
26
    *  URL_PLAYLIST: http://www.deezer.com/fr/music/playlist/18701350
27
    *  URL_ALBUM:    http://www.deezer.com/fr/music/pantera/far-beyond-driven-80398
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
   public function retrieveDatas()
32
   public function retrieveDatas()
30
   {
33
   {
58
       );
61
       );
59
       curl_setopt_array( $ch, $options );
62
       curl_setopt_array( $ch, $options );
60
       $result = json_decode(curl_exec($ch));
63
       $result = json_decode(curl_exec($ch));
61
-
64
+      
62
       if (isset($result->cover))
65
       if (isset($result->cover))
63
       {
66
       {
64
         $this->element->setData(Element::DATA_THUMB_URL, $result->cover);
67
         $this->element->setData(Element::DATA_THUMB_URL, $result->cover);
65
       }
68
       }
69
+      
70
+      
66
     }
71
     }
67
   }
72
   }
68
   
73
   
84
   
89
   
85
   public function proceedThumbnailUrl()
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
       $this->element->setThumbnailUrl($thumb);
94
       $this->element->setThumbnailUrl($thumb);
90
     }
95
     }