Skip to content

Commit

Permalink
Apply HTTPS to load a playlist securely
Browse files Browse the repository at this point in the history
  • Loading branch information
ucyang committed Jul 4, 2021
1 parent baa34cb commit 445078c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/playlist/soundcloud.js
Expand Up @@ -28,7 +28,7 @@ define(['jquery','song'],function($,Song){

return {
load:function(url, req, callback, config){
load('http://api.soundcloud.com/resolve?url=' + url,callback);
load('https://api.soundcloud.com/resolve?url=' + url,callback);
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion js/playlist/youtube.js
Expand Up @@ -7,7 +7,7 @@ define(['jquery','song'],function($,Song){
}
return {
load:function(url, req, callback, config){
var playlistURL = 'http://gdata.youtube.com/feeds/api/playlists/'+
var playlistURL = 'https://gdata.youtube.com/feeds/api/playlists/'+
parseId(url)+'?v=2&alt=json&max-results=50&callback=?';
$.getJSON(playlistURL, function(data) {
callback($.map(data.feed.entry,function(item){
Expand Down

1 comment on commit 445078c

@eledero1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goood

Please sign in to comment.