From 7c144ee013c2d168d93f203c34f88c8c3bfb4068 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Fri, 30 Jan 2026 19:27:31 +0100 Subject: [PATCH] fix(Innertube)!: Remove getTrending as YouTube removed the trending feed (#1114) --- src/Innertube.ts | 6 ------ tests/main.test.ts | 8 -------- 2 files changed, 14 deletions(-) diff --git a/src/Innertube.ts b/src/Innertube.ts index 62f3e93c..48608295 100644 --- a/src/Innertube.ts +++ b/src/Innertube.ts @@ -364,12 +364,6 @@ export default class Innertube { return new History(this.actions, response); } - async getTrending(): Promise> { - const browse_endpoint = new NavigationEndpoint({ browseEndpoint: { browseId: 'FEtrending' } }); - const response = await browse_endpoint.call(this.#session.actions); - return new TabbedFeed(this.actions, response); - } - async getCourses(): Promise> { const browse_endpoint = new NavigationEndpoint({ browseEndpoint: { browseId: 'FEcourses_destination' } }); const response = await browse_endpoint.call(this.#session.actions, { parse: true }); diff --git a/tests/main.test.ts b/tests/main.test.ts index ea041b86..6643b561 100644 --- a/tests/main.test.ts +++ b/tests/main.test.ts @@ -156,14 +156,6 @@ describe('YouTube.js Tests', () => { expect(guide.contents?.length).toBeGreaterThan(0); }); - test('Innertube#getTrending', async () => { - const trending = await innertube.getTrending(); - expect(trending).toBeDefined(); - expect(trending.page.contents).toBeDefined(); - expect(trending.page.contents_memo).toBeDefined(); - expect(trending.videos.length).toBeGreaterThan(0); - }); - test('Innertube#getCourses', async () => { const courses = await innertube.getCourses(); expect(courses).toBeDefined();