Skip to content

Release Tab for Youtube Artist channel #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks done
RikiNozomu opened this issue May 23, 2023 · 1 comment · Fixed by #436
Closed
4 tasks done

Release Tab for Youtube Artist channel #410

RikiNozomu opened this issue May 23, 2023 · 1 comment · Fixed by #436
Labels
enhancement New feature or request good first issue Good for newcomers priority: medium

Comments

@RikiNozomu
Copy link

Describe your suggestion

Please add a new feature for list playlist from release tab.
Screenshot 2566-05-23 at 15 04 12

Other details

No response

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@RikiNozomu RikiNozomu added the enhancement New feature or request label May 23, 2023
@LuanRT
Copy link
Owner

LuanRT commented May 23, 2023

Wow, I didn't know about this tab. Cool!

You can actually fetch any tab you want even if the library doesn't support it officially.

import { Innertube, YT } from 'youtubei.js';

(async () => {
  const yt = await Innertube.create();
  
  const channel = await yt.getChannel('UC5CwaMl1eIgY8h02uZw7u8A');
 
  if (channel.hasTabWithURL('releases')) {
    const tab = await channel.getTabByURL('releases');
    const releasesTab = new YT.Channel(yt.actions, tab.page, true);
    console.log(releasesTab);
    console.log(releasesTab.playlists);
  }
})();

I hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers priority: medium
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants