mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
parent
e104a57d8c
commit
ab95e6a505
1 changed files with 7 additions and 1 deletions
|
@ -392,7 +392,13 @@ $obj = YouPHPTubePlugin::getObjectData("BulkEmbed");
|
|||
|
||||
// Build output
|
||||
function getOutput(item) {
|
||||
var videoID = item.id.videoId;
|
||||
console.log(item);
|
||||
var videoID;
|
||||
if(item.id.videoId){
|
||||
videoID = item.id.videoId;
|
||||
}else{
|
||||
videoID = item.snippet.resourceId.videoId;
|
||||
}
|
||||
var title = item.snippet.title;
|
||||
var description = item.snippet.description;
|
||||
var thumb = item.snippet.thumbnails.high.url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue