youtubei 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@ class PlaylistParser {
14
14
  target.id = (_a = Object.values(metadata)
15
15
  .find((v) => v.includes("playlist?list="))) === null || _a === void 0 ? void 0 : _a.split("=")[1];
16
16
  target.title = metadata.title;
17
+ target.thumbnails = new common_1.Thumbnails().load(primaryRenderer.thumbnailRenderer.playlistVideoThumbnailRenderer.thumbnail.thumbnails);
17
18
  const { stats } = primaryRenderer;
18
19
  if (primaryRenderer.stats.length === 3) {
19
20
  target.videoCount = PlaylistParser.parseSideBarInfo(stats[0], true);
@@ -24,6 +24,7 @@ var PlaylistParser = /** @class */ (function () {
24
24
  target.id = (_a = Object.values(metadata)
25
25
  .find(function (v) { return v.includes("playlist?list="); })) === null || _a === void 0 ? void 0 : _a.split("=")[1];
26
26
  target.title = metadata.title;
27
+ target.thumbnails = new Thumbnails().load(primaryRenderer.thumbnailRenderer.playlistVideoThumbnailRenderer.thumbnail.thumbnails);
27
28
  var stats = primaryRenderer.stats;
28
29
  if (primaryRenderer.stats.length === 3) {
29
30
  target.videoCount = PlaylistParser.parseSideBarInfo(stats[0], true);
@@ -1,4 +1,4 @@
1
- import { YoutubeRawData } from "../../common";
1
+ import { Thumbnails, YoutubeRawData } from "../../common";
2
2
  import { Base, BaseProperties } from "../Base";
3
3
  import { BaseChannel, BaseChannelProperties } from "../BaseChannel";
4
4
  import { PlaylistVideos } from "./PlaylistVideos";
@@ -9,6 +9,7 @@ interface PlaylistProperties extends BaseProperties {
9
9
  videoCount?: number;
10
10
  viewCount?: number;
11
11
  lastUpdatedAt?: string;
12
+ thumbnails?: Thumbnails;
12
13
  channel?: BaseChannelProperties;
13
14
  videos?: PlaylistVideos;
14
15
  }
@@ -23,6 +24,8 @@ export declare class Playlist extends Base implements PlaylistProperties {
23
24
  viewCount: number;
24
25
  /** Last time this playlist is updated */
25
26
  lastUpdatedAt: string;
27
+ /** Thumbnails of this playlist */
28
+ thumbnails: Thumbnails;
26
29
  /** The channel that made this playlist */
27
30
  channel?: BaseChannel;
28
31
  /** Continuable of videos in this playlist */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "youtubei",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",