fix: add visitor_data to recommendation paginator
This commit is contained in:
parent
39fca50731
commit
3a0db09e23
18 changed files with 155 additions and 124 deletions
|
|
@ -4,6 +4,7 @@ pub mod locale;
|
|||
pub mod search_filter;
|
||||
|
||||
pub use locale::{Country, Language};
|
||||
use serde::{Deserialize, Serialize};
|
||||
pub use stream_filter::StreamFilter;
|
||||
|
||||
/// Channel video sort order
|
||||
|
|
@ -18,3 +19,22 @@ pub enum ChannelOrder {
|
|||
/// Output the most viewed videos first
|
||||
Popular,
|
||||
}
|
||||
|
||||
/// YouTube API endpoint to fetch continuations from
|
||||
#[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq, Eq)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum ContinuationEndpoint {
|
||||
Browse,
|
||||
Search,
|
||||
Next,
|
||||
}
|
||||
|
||||
impl ContinuationEndpoint {
|
||||
pub(crate) fn as_str(self) -> &'static str {
|
||||
match self {
|
||||
ContinuationEndpoint::Browse => "browse",
|
||||
ContinuationEndpoint::Search => "search",
|
||||
ContinuationEndpoint::Next => "next",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue