feat!: add channel_videos_tab, channel_videos_order,

remove channel_shorts, channel_livestreams
fix: parsing video types and short durations
This commit is contained in:
ThetaDev 2023-05-11 14:13:54 +02:00
parent 7e5cff719a
commit 3a75ed8610
20 changed files with 444 additions and 152 deletions

View file

@ -850,7 +850,7 @@ pub struct VideoItem {
pub publish_date: Option<OffsetDateTime>,
/// Textual video publish date (e.g. `11 months ago`, depends on language)
///
/// Is [`None`] for livestreams.
/// Is [`None`] for livestreams and upcoming videos.
pub publish_date_txt: Option<String>,
/// View count
///

View file

@ -34,7 +34,7 @@ pub struct Paginator<T> {
#[serde(skip_serializing_if = "Option::is_none")]
pub visitor_data: Option<String>,
/// YouTube API endpoint to fetch continuations from
pub(crate) endpoint: ContinuationEndpoint,
pub endpoint: ContinuationEndpoint,
}
impl<T> Default for Paginator<T> {