Browse Source

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

Sevajol Bastien 12 years ago
parent
commit
183071bae9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Muzich/CoreBundle/Factory/Elements/Jamendocom.php

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

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