@@ -16,11 +16,11 @@ categories = ['music']
16paging = True
16paging = True
18# search-url
18# search-url
19−url = 'http://api.deezer.com/'
19+url = 'https://api.deezer.com/'
20search_url = url + 'search?{query}&index={offset}'
20search_url = url + 'search?{query}&index={offset}'
22embedded_url = '<iframe scrolling="no" frameborder="0" allowTransparency="true" ' +\
22embedded_url = '<iframe scrolling="no" frameborder="0" allowTransparency="true" ' +\
23− 'data-src="http://www.deezer.com/plugins/player?type=tracks&id={audioid}" ' +\
23+ 'data-src="https://www.deezer.com/plugins/player?type=tracks&id={audioid}" ' +\
24 'width="540" height="80"></iframe>'
24 'width="540" height="80"></iframe>'
@@ -45,6 +45,10 @@ def response(resp):
45 if result['type'] == 'track':
45 if result['type'] == 'track':
46 title = result['title']
46 title = result['title']
47 url = result['link']
47 url = result['link']
49+ if url.startswith('http://'):
50+ url = 'https' + url[4:]
48 content = result['artist']['name'] +\
52 content = result['artist']['name'] +\
49 " • " +\
53 " • " +\
50 result['album']['title'] +\
54 result['album']['title'] +\