mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Merge branch 'master' of github.com:nixolas1/zoff
This commit is contained in:
@@ -17,7 +17,7 @@ function updateList()
|
||||
conf = list["conf"];
|
||||
if(conf.hasOwnProperty("addsongs") && conf["addsongs"] == "true") adminadd = 1;
|
||||
else adminadd = 0;
|
||||
if(conf.hasOwnProperty("onlymusic") && conf["onlymusic"] == "true") music = 1;
|
||||
if(conf.hasOwnProperty("allvideos") && conf["allvideos"] == "true") music = 1;
|
||||
else music = 0;
|
||||
if(conf.hasOwnProperty("longsongs") && conf["longsongs"] == "true") longS = 1;
|
||||
else longS = 0;
|
||||
@@ -80,7 +80,7 @@ function updateList()
|
||||
document.getElementsByName("addSongs")[0].checked = (conf["addsongs"] === "true");
|
||||
document.getElementsByName("longSongs")[0].checked = (conf["longsongs"] === "true");
|
||||
document.getElementsByName("frontPage")[0].checked = (conf["frontpage"] === "true");
|
||||
document.getElementsByName("onlyMusic")[0].checked = (conf["onlymusic"] === "true");
|
||||
document.getElementsByName("allvideos")[0].checked = (conf["allvideos"] === "true");
|
||||
document.getElementsByName("removePlay")[0].checked = (conf["removeplay"] === "true");
|
||||
}, 2500);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ $(document).ready(function()
|
||||
$.each(response.data.items, function(i,data)
|
||||
{
|
||||
if(data.duration > 720 && longS == 0){return;}
|
||||
if(data["category"] == "Music" || music == 0){
|
||||
if(data["category"] == "Music" || music == 1){
|
||||
var video_title=encodeURIComponent(data.title).replace(/'/g, "\\\'");
|
||||
var views=data.viewCount;
|
||||
var video_thumb = "http://i.ytimg.com/vi/"+data.id+"/default.jpg";
|
||||
|
||||
Reference in New Issue
Block a user