mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 00:56:23 +00:00
feat: add support for topic/auto-generated channels and fix minor parsing errors (#233)
* dev: add support for topic channels * dev(parser): do not try to parse empty nodes * dev: add support for auto-generated game channels
This commit is contained in:
13
src/parser/classes/PlaylistCustomThumbnail.ts
Normal file
13
src/parser/classes/PlaylistCustomThumbnail.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { YTNode } from '../helpers';
|
||||
import Thumbnail from './misc/Thumbnail';
|
||||
|
||||
export default class PlaylistCustomThumbnail extends YTNode {
|
||||
static type = 'PlaylistCustomThumbnail';
|
||||
|
||||
thumbnail: Thumbnail[];
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.thumbnail = Thumbnail.fromResponse(data.thumbnail);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user