Explorar el Código

bug fix: album jamendo: "json" au lieu de "jsonpretty" !

Sevajol Bastien hace 12 años
padre
commit
183071bae9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/Muzich/CoreBundle/Factory/Elements/Jamendocom.php

+ 2 - 2
src/Muzich/CoreBundle/Factory/Elements/Jamendocom.php Ver fichero

63
     {
63
     {
64
       case 'album':
64
       case 'album':
65
         $api_url = "http://api.jamendo.com/get2/"
65
         $api_url = "http://api.jamendo.com/get2/"
66
-          ."id+name+url+image+artist_name+artist_url/album/jsonpretty/?album_id=".$ref_id;
66
+          ."id+name+url+image+artist_name+artist_url/album/json/?album_id=".$ref_id;
67
         $api_tag_url = "http://api.jamendo.com/get2/name+weight/tag/json/album_tag/?album_id=".$ref_id;
67
         $api_tag_url = "http://api.jamendo.com/get2/name+weight/tag/json/album_tag/?album_id=".$ref_id;
68
       break;
68
       break;
69
     
69
     
83
       );
83
       );
84
       curl_setopt_array( $ch, $options );
84
       curl_setopt_array( $ch, $options );
85
       $result = json_decode(curl_exec($ch), true);
85
       $result = json_decode(curl_exec($ch), true);
86
-            
86
+      
87
       if (count($result))
87
       if (count($result))
88
       {
88
       {
89
         // Thumb
89
         // Thumb