mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 12:31:17 +00:00
chore: lint
This commit is contained in:
@@ -18,7 +18,7 @@ class MusicDetailHeader extends YTNode {
|
||||
this.thumbnails = Thumbnail.fromResponse(data.thumbnail.croppedSquareThumbnailRenderer.thumbnail);
|
||||
this.badges = Parser.parse(data.subtitleBadges);
|
||||
|
||||
const author = this.subtitle.runs.find((run) => run.endpoint.browse?.id.startsWith('UC'));
|
||||
const author = this.subtitle.runs.find((run) => run.endpoint?.browse?.id.startsWith('UC'));
|
||||
|
||||
if (author) {
|
||||
this.author = {
|
||||
|
||||
@@ -72,7 +72,7 @@ class MusicResponsiveListItem extends YTNode {
|
||||
playlist_set_video_id: data?.playlistItemData?.playlistSetVideoId || null
|
||||
};
|
||||
|
||||
this.endpoint = data.navigationEndpoint ? new NavigationEndpoint(data.navigationEndpoint) : undefined;
|
||||
this.endpoint = data.navigationEndpoint ? new NavigationEndpoint(data.navigationEndpoint) : null;
|
||||
|
||||
switch (this.endpoint?.browse?.page_type) {
|
||||
case 'MUSIC_PAGE_TYPE_ALBUM':
|
||||
|
||||
@@ -8,7 +8,7 @@ import BrowseFeedActions from '../classes/BrowseFeedActions';
|
||||
class History extends Feed {
|
||||
sections;
|
||||
feed_actions;
|
||||
|
||||
|
||||
constructor(actions: Actions, data: any, already_parsed = false) {
|
||||
super(actions, data, already_parsed);
|
||||
this.sections = this.memo.get('ItemSection') as ItemSection[];
|
||||
|
||||
Reference in New Issue
Block a user