Skip to content

Commit

Permalink
feat(YouTube): Add FEchannels feed (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Dec 21, 2023
1 parent 5c83e99 commit 14578ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Innertube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,16 @@ export default class Innertube {
return new Feed(this.actions, response);
}

/**
* Retrieves channels feed.
*/
async getChannelsFeed(): Promise<Feed<IBrowseResponse>> {
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
Expand Down
1 change: 1 addition & 0 deletions src/core/Actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export default class Actions {
'FElibrary',
'FEhistory',
'FEsubscriptions',
'FEchannels',
'FEmusic_listening_review',
'FEmusic_library_landing',
'SPaccount_overview',
Expand Down

0 comments on commit 14578ac

Please sign in to comment.