diff --git a/index.php b/index.php index 2c905d43..d1257ca9 100755 --- a/index.php +++ b/index.php @@ -1,12 +1,10 @@ diff --git a/static/js/list.js b/static/js/list.js index 2e87a4a6..d8ea4fcb 100755 --- a/static/js/list.js +++ b/static/js/list.js @@ -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(); diff --git a/static/js/nochan.js b/static/js/nochan.js index 61cf8340..a616df9e 100755 --- a/static/js/nochan.js +++ b/static/js/nochan.js @@ -14,10 +14,9 @@ function getCookie(cname) { function populate_channels(lists) { var output = ""; - + var num = 0; lists.sort(sortFunction); - pre_card = $(list_html); for(x in lists) @@ -45,6 +44,8 @@ function populate_channels(lists) console.log(chan); output+="