mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Test for song import
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user