invidious 0.7.8

Get information about videos from YouTube with this simple Invidious API wrapper. Does not use the YouTube API (No tokens required)
Documentation
use serde::{Deserialize, Serialize};

use crate::CommonThumbnail;

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct PopularItem {
    pub r#type: String,
    pub title: String,
    #[serde(rename = "videoId")]
    pub id: String,
    #[serde(rename = "videoThumbnails")]
    pub thumbnails: Vec<CommonThumbnail>,

    #[serde(rename = "lengthSeconds")]
    pub length: u32,
    #[serde(rename = "viewCount")]
    pub views: u64,

    pub author: String,
    #[serde(rename = "authorId")]
    pub author_id: String,
    #[serde(rename = "authorUrl")]
    pub author_url: String,

    pub published: u64,
    #[serde(rename = "publishedText")]
    pub published_text: String,
}