Test for song import

This commit is contained in:
Nicolas A. Tonne
2015-04-30 16:47:52 +02:00
parent 3277569863
commit 8ee05b874f
4 changed files with 23 additions and 4 deletions

View File

@@ -124,6 +124,25 @@ function skip(){
return true;
}
function importOldList(chan){
playlist_url = "http://zoff.no/"+chan+"/php/change.php";
list = $.ajax({
type: "GET",
url: playlist_url,
async: false
}).responseText;
list = $.parseJSON(list);
var ids="";
$.each(list.songs, function(i,data)
{
ids+=data.id+",";
if(i>48)return;
});
addVideos(ids);
document.getElementById("search").value = "";
}
function refresh_scroll()
{
myScroll.refresh();