Created
June 25, 2015 11:39
-
-
Save nosalvage/c7d979f10acd2a0722ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(var i = 0; i < items.length; i++){ | |
if(items[i].attachments){ | |
for(var j = 0; j < items[i].attachments.length; j++){ | |
if(items[i].attachments[j].type == 'video'){ | |
feed.getVideo(items[i].attachments[j].video.owner_id, items[i].attachments[j].video.owner_id+'_'+items[i].attachments[j].video.id).then(function(result){ | |
videos[items[i].id].player = result.data.response.items[0].player; | |
}); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment