Skip to content

Commit

Permalink
Add videos?part=snippet *title*
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Loison committed Oct 30, 2024
1 parent a37ac8e commit 0ed55f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion videos.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ function getItem($id)
$description = $contents[1]['videoSecondaryInfoRenderer']['attributedDescription']['content'];
$snippet = [
'publishedAt' => $publishedAt,
'description' => $description
'description' => $description,
'title' => $contents[0]['videoPrimaryInfoRenderer']['title']['runs'][0]['text'],
];
$item['snippet'] = $snippet;
}
Expand Down

0 comments on commit 0ed55f8

Please sign in to comment.