feat: add search filter, refactor params

This commit is contained in:
ThetaDev 2022-10-10 21:08:21 +02:00
parent 44e14a4ae0
commit 25de7d678a
24 changed files with 374 additions and 72 deletions

20
src/param/mod.rs Normal file
View file

@ -0,0 +1,20 @@
mod stream_filter;
pub mod locale;
pub mod search_filter;
pub use locale::{Country, Language};
pub use stream_filter::StreamFilter;
/// Channel video sort order
#[derive(Default, Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum ChannelOrder {
/// Output the latest videos first
#[default]
Latest,
/// Output the oldest videos first
Oldest,
/// Output the most viewed videos first
Popular,
}