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