chore: lint

This commit is contained in:
LuanRT
2022-07-29 06:58:49 -03:00
parent 72c3af84b0
commit 88a6ee907e
3 changed files with 3 additions and 3 deletions

View File

@@ -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 = {

View File

@@ -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':

View File

@@ -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[];