Fixed String instead of str error in server, and empty channel bug

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-27 02:58:38 +02:00
parent f23d40d629
commit cbcdfdbc41
3 changed files with 5 additions and 3 deletions

View File

@@ -736,7 +736,7 @@ function uniqueID(seed, minlen){
var id = rndName(seed, len); var id = rndName(seed, len);
while( contains(unique_ids, id) && len<=8){ while( contains(unique_ids, id) && len<=8){
id = rndName(str(len)+id, len); id = rndName(String(len)+id, len);
len += 0.1; // try 10 times at each length len += 0.1; // try 10 times at each length
} }

File diff suppressed because one or more lines are too long

View File

@@ -9,7 +9,9 @@ var Youtube = {
document.getElementById('song-title').innerHTML = "Empty channel. Add some songs!"; document.getElementById('song-title').innerHTML = "Empty channel. Add some songs!";
$("#player_overlay").height($("#player").height()); $("#player_overlay").height($("#player").height());
if(!window.mobilecheck()) $("#player_overlay").toggleClass("hide"); if(!window.mobilecheck()) $("#player_overlay").toggleClass("hide");
if(ytplayer !== undefined) ytplayer.stopVideo(); try{
ytplayer.stopVideo();
}catch(e){}
//List.importOldList(channel.toLowerCase()); //List.importOldList(channel.toLowerCase());
} }
else{ else{