mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed bug in addVideos() function with nonexisting variable being referenced
This commit is contained in:
@@ -267,7 +267,7 @@ function addVideos(ids){
|
||||
$.each(response.items, function(i,song)
|
||||
{
|
||||
var duration=durationToSeconds(song.contentDetails.duration);
|
||||
if(!longsongs || secs<720){
|
||||
if(!longsongs || duration<720){
|
||||
enc_title=encodeURIComponent(song.snippet.title).replace(/'/g, "\\\'");
|
||||
submit(song.id, enc_title, duration);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user