yt icon indicating copy to clipboard operation
yt copied to clipboard

Add #deleted? method to PlaylistItem

Open Riveascore opened this issue 3 years ago • 1 comments

#deleted? exists on Video. But appears to only be accessible if you have proper auth on the Video object itself.

Say you have a Playlist, and you want to do something with each item. You'll get a request error if the Video on a PlaylistItem is deleted.

But you can't call playlist_item.video.deleted?, you'll just get this error instead:

Yt::Errors::NoItems: A request to YouTube API returned no items but some were expected

Riveascore avatar Dec 26 '20 04:12 Riveascore

Thank you for reporting @Riveascore

kangkyu avatar Sep 27 '23 06:09 kangkyu