Hexer10 / youtube_explode_dart

Dart library to interact with many Youtube APIs
https://pub.dev/packages/youtube_explode_dart
BSD 3-Clause "New" or "Revised" License
299 stars 122 forks source link

Youtube shorts only filter #268

Closed igormidev closed 8 months ago

igormidev commented 8 months ago

Is your feature request related to a problem? Please describe. I created a package called youtube_shorts. And I want to make a filter byChannelName. But when I try to get the videos from a channel I could not find a way to only get short videos. For example: In barcelona channel I try to use getUploadsFromPage to get the video but all the 30 first videos plus videos that we brings is in the normal horizontal viewport format. When do the shorts start coming?

Describe the solution you'd like

await _yt.channels.getUploadsFromPage(
   channel.id,
   VideoSorting.newest,
   VideoType.onlyShorts // <= create this setting
)

Describe alternatives you've considered I trying to make a work around with the search api and searching for shorts of the channel. But this is far away from beeing trhe perfect way.

igormidev commented 8 months ago

Made a PR to fix this issue @Hexer10

https://github.com/Hexer10/youtube_explode_dart/pull/269