mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +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':
|
||||
|
||||
Reference in New Issue
Block a user