youtubei
Version:
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
43 lines (42 loc) • 1.37 kB
TypeScript
import { Thumbnails, YoutubeRawData } from "../../common";
import { Base, BaseProperties } from "../Base";
import { BaseChannel, BaseChannelProperties } from "../BaseChannel";
import { PlaylistVideos } from "./PlaylistVideos";
/** @hidden */
interface PlaylistProperties extends BaseProperties {
id?: string;
title?: string;
videoCount?: number;
viewCount?: number;
lastUpdatedAt?: string;
thumbnails?: Thumbnails;
channel?: BaseChannelProperties;
videos?: PlaylistVideos;
}
/** Represents a Playlist, usually returned from `client.getPlaylist()` */
export declare class Playlist extends Base implements PlaylistProperties {
id: string;
/** The title of this playlist */
title: string;
/** How many videos in this playlist */
videoCount: number;
/** How many viewers does this playlist have */
viewCount: number;
/** Last time this playlist is updated */
lastUpdatedAt: string;
/** Thumbnails of this playlist */
thumbnails: Thumbnails;
/** The channel that made this playlist */
channel?: BaseChannel;
/** Continuable of videos in this playlist */
videos: PlaylistVideos;
/** @hidden */
constructor(attr: PlaylistProperties);
/**
* Load this instance with raw data from Youtube
*
* @hidden
*/
load(data: YoutubeRawData): Playlist;
}
export {};