deezer

Deezer API: Search result is empty

荒凉一梦 提交于 2019-12-20 05:19:17
问题 I've got a problem. I'm making something with the Deezer api. When I try to search with the api I'm always getting an empty result. To test it I'm using this code: <?php echo file_get_contents('https://api.deezer.com/2.0/search?q=Avicii'); ?> When I visit the url in my browser it works fine. But when I visit the PHP-file it outputs: {"data":[],"total":0} I'm also getting data from a Deezer playlist and that works fine! I searched the web for it but I've got no idea what's wrong. Thanks in

Deezer content is served over HTTP

岁酱吖の 提交于 2019-12-18 05:25:13
问题 I am using Deezer Javascript SDK and loaded it over https. <script src="https://cdns-files.deezer.com/js/min/dz.js"></script> But from today Chrome and Firefox has problem, because Deezer SDK loading some script over https and Chrome rejected as insecure content. Chrome console: Mixed Content: The page at 'https://....' was loaded over HTTPS, but requested an insecure script 'http://www.deezer.com/js_trad-v00340851.php?l=cs'. This request has been blocked; the content must be served over

Cannot load Deezer API resources from localhost with the Fetch API

做~自己de王妃 提交于 2019-12-17 12:59:13
问题 I'm trying to access the Deezer API from localhost, but I'm keep getting the following error: Fetch API cannot load http://api.deezer.com/search/track/autocomplete?limit=1&q=eminem. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS

How to handle deezer IDs vocabulary

假如想象 提交于 2019-12-13 20:55:48
问题 each song can have different IDs in different countries (see Deezer APsI: example of non-streamable song for country limitation for detalis); having said that, which is the best practice to handle this in a deezer APIs based application? Is there anything (like a "superID") which tells me that song A having ID 7 and song A having ID 8 are actually the same song? As far as I have understood, the difference in catalog among countries shouldn't be huge so a song available in country X is usually

Deezer API - get large cover

情到浓时终转凉″ 提交于 2019-12-13 06:58:28
问题 I'm trying to get a larger version of cover from Deezer's API. From what I read, adding size/big shoul suffice, but it doesn't - I get error in return. What can I do? My current URL is https://api.deezer.com/album/302127/image/size/big 回答1: Here's the correct format for the url : https://api.deezer.com/album/302127/image?size=big 来源: https://stackoverflow.com/questions/24413661/deezer-api-get-large-cover

destroy a deezer Event Destroy (DZ.Event.subscribe('player_paused') etc

梦想的初衷 提交于 2019-12-12 04:43:06
问题 I use the deezer api to build a web app and User a DZ.Event.subscribe('player_paused'). There is only a description to add a new Event, not to destroy. Now the simple Question is: How to destroy this Event? 回答1: You can use the following function: DZ.Event.unsubscribe('EVNT_NAME'); 来源: https://stackoverflow.com/questions/22654612/destroy-a-deezer-event-destroy-dz-event-subscribeplayer-paused-etc

C# wrapper for C++ deezer library : PLAYLIST_TRACK_NO_RIGHT

谁说我不能喝 提交于 2019-12-12 04:11:12
问题 I'm currently trying to make deezer wrapper for native library to work. It works until it tries to play the track : I got a callback saying PLAYLIST_TRACK_NO_RIGHT. I've tried to read this track with online deezer website and it works well. I also tried with another tracks that works on the deezer website but still doesn't work with the wrapper saying there are no rights to play it. Does anyone knows why there is this error please ? I think there is something with the Connect method. I saw

How do I use the Deezer Api?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 01:33:02
问题 I'm trying to use the deezer api to look up artists and display their name and image using Jquery. Here's my code: $.getJSON('http://api.deezer.com/search/artists?q='+q+'', function(data) { $("#artists").empty(); $.each(data, function(i,item){ var y=item.picture; var z=x+y; $("#artists").append("<div id='card_artist'><div id='cardimg' style='background-image: url("+ z +");'></div><div id='artistname' class='jtextfill'><span>" + item.name + "<span></div></div>"); }); }); but it just won't work

Deezer Javascript SDK pause() method doesn't work on iOS

隐身守侯 提交于 2019-12-11 05:17:19
问题 The Deezer Javascript SDK DZ.player.pause() method doesn't seem to work on iOS, even the pause button in Deezer's InApp Demo Application doesn't do anything. Is it going to be fixed soon? In the meantime, is there any workaround to achieve the same thing? For instance, I tried starting to play an invalid album, but that had no effect. 回答1: This bug is fixed in the application version that will be published in 3 weeks. 来源: https://stackoverflow.com/questions/30762068/deezer-javascript-sdk

Extracting data from script tag using BeautifulSoup in Python

≯℡__Kan透↙ 提交于 2019-12-11 01:22:06
问题 I want to extract "SNG_TITLE" and "ART_NAME" values from the code in "script" tag using BeautifulSoup in Python. (the whole script is too long to paste) <script>window.__DZR_APP_STATE__ = {"TAB":{"loved":{"data":[{"SNG_ID":"126884459","PRODUCT_TRACK_ID":"360276641","UPLOAD_ID":0,"SNG_TITLE":"Heathens","ART_ID":"647650","PROVIDER_ID":"3","ART_NAME":"Twenty One Pilots","ARTISTS":[{"ART_ID":"647650","ROLE_ID":"0","ARTISTS_SONGS_ORDER":"1","ART_NAME":"Twenty One Pilots","ART_PICTURE":