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
322 stars 141 forks source link

Search Filters are not documented anywhere #201

Open prateekmedia opened 2 years ago

prateekmedia commented 2 years ago

Is their any document that shows how to use the search filters, I know they are their but they are not documented.

Hexer10 commented 2 years ago

Hi, I've introduced some more tests that should explain how to use them. Since v1.11.0 you can either use yt.search() or yt.search.search() to search only videos and use a filter, currently you can't use more than one filter, see:

https://github.com/Hexer10/youtube_explode_dart/blob/8026eea9b551d12373c3d18ceef6424a03da52a5/test/search_test.dart#L33-L67

These are the filters youtube provides: TypeFilters, FeatureFilters, UploadDateFilter, DurationFilters, SortFilters