From 6af2fea80270efc2580689d615aa8076072f5e93 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sun, 17 Dec 2023 15:28:50 -0500 Subject: [PATCH] Add FEchannels feed --- src/Innertube.ts | 10 ++++++++++ src/core/Actions.ts | 1 + 2 files changed, 11 insertions(+) diff --git a/src/Innertube.ts b/src/Innertube.ts index 151e39be7..a6b376d55 100644 --- a/src/Innertube.ts +++ b/src/Innertube.ts @@ -280,6 +280,16 @@ export default class Innertube { return new Feed(this.actions, response); } + /** + * Retrieves channels feed. + */ + async getChannelsFeed(): Promise> { + const response = await this.actions.execute( + BrowseEndpoint.PATH, { ...BrowseEndpoint.build({ browse_id: 'FEchannels' }), parse: true } + ); + return new Feed(this.actions, response); + } + /** * Retrieves contents for a given channel. * @param id - Channel id diff --git a/src/core/Actions.ts b/src/core/Actions.ts index 96db02e29..30461675d 100644 --- a/src/core/Actions.ts +++ b/src/core/Actions.ts @@ -167,6 +167,7 @@ export default class Actions { 'FElibrary', 'FEhistory', 'FEsubscriptions', + 'FEchannels', 'FEmusic_listening_review', 'FEmusic_library_landing', 'SPaccount_overview',