mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 18:06:15 +00:00
fix(Channel): Add support for new feed filter nodes (#1163)
* feat(Feed): Update `getVideosFromMemo` to support `LockupView` nodes * feat(parser): Add `DownloadListItemView` renderer parser * feat(FilterableFeed): Add support for `ChipView` nodes * feat(Channel): Add support for new feed filter system Honestly the whole Channel class needs a cleanup. Maybe I'll do that at some point in the future.
This commit is contained in:
16
src/parser/classes/DownloadListItemView.ts
Normal file
16
src/parser/classes/DownloadListItemView.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { YTNode } from '../helpers.js';
|
||||
import type { RawNode } from '../types/RawResponse.js';
|
||||
import RendererContext from './misc/RendererContext.js';
|
||||
|
||||
export default class DownloadListItemView extends YTNode {
|
||||
static type = 'DownloadListItemView';
|
||||
|
||||
public renderer_context?: RendererContext;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
if ('rendererContext' in data) {
|
||||
this.renderer_context = new RendererContext(data.rendererContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user