瀏覽代碼

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

Sevajol Bastien 12 年之前
父節點
當前提交
183071bae9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Muzich/CoreBundle/Factory/Elements/Jamendocom.php

+ 2 - 2
src/Muzich/CoreBundle/Factory/Elements/Jamendocom.php 查看文件

@@ -63,7 +63,7 @@ class Jamendocom extends ElementFactory
63 63
     {
64 64
       case 'album':
65 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 67
         $api_tag_url = "http://api.jamendo.com/get2/name+weight/tag/json/album_tag/?album_id=".$ref_id;
68 68
       break;
69 69
     
@@ -83,7 +83,7 @@ class Jamendocom extends ElementFactory
83 83
       );
84 84
       curl_setopt_array( $ch, $options );
85 85
       $result = json_decode(curl_exec($ch), true);
86
-            
86
+      
87 87
       if (count($result))
88 88
       {
89 89
         // Thumb