Open yasir-naseer opened 7 months ago
@yasir-naseer Did you manage to find a solution ?
not yet
Hi, The only way I've found is to filter directly via the description key, if it's empty then it'll be a short. Unfortunately, this isn't 100% reliable.
$videoList = Youtube::listChannelVideos('xxxxxxxxxxxxxx', 40, 'date');
$videosWithoutShort = collect($videoList)->filter(function ($item) {
return !empty($item->snippet->description);
})
Im using Youtube::listChannelVideos() to get the list of channel videos, but it also returns the youtube short, is there a way to filter so we can only get videos?