This commit is contained in:
Nicolas A. Tonne
2015-04-30 17:04:59 +02:00
parent f7273c3c5a
commit 0d516b28a2
2 changed files with 11 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ function skip(){
}
function importOldList(chan){
playlist_url = "http://zoff.no/"+chan+"/php/change.php";
playlist_url = "lists/"+chan+".json";
list = $.ajax({
type: "GET",
@@ -134,11 +134,18 @@ function importOldList(chan){
}).responseText;
list = $.parseJSON(list);
var ids="";
var num=0;
$.each(list.songs, function(i,data)
{
ids+=data.id+",";
if(i>48)return;
if(num>45){
addVideos(ids);
ids="";
num=0;
}
num++;
});
addVideos(ids);
document.getElementById("search").value = "";
}