Skip to content
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

Shorts and Playlists Data Bug #122

Open
MZRCode opened this issue Nov 14, 2024 · 1 comment
Open

Shorts and Playlists Data Bug #122

MZRCode opened this issue Nov 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MZRCode
Copy link

MZRCode commented Nov 14, 2024

Hello, i tried to get the short and playlist data of many channels, but i got an empty array output as in the ss below. I left the code i used below in case you want to review it, good day.

const { Client } = require('youtubei');

const youtube = new Client();

const run = async () => {
    const a = await youtube.getChannel('UCJLOwrktwJjwdJPwSTxUqZQ');

    await a.videos.next(); // Works
    await a.live.next() // Works

    console.log(await a.shorts.next());
    console.log(await a.playlists.next());
};

run();

image

@MZRCode MZRCode added the bug Something isn't working label Nov 14, 2024
@xiaohaoxing
Copy link
Contributor

xiaohaoxing commented Nov 15, 2024

It seems that youtube don't reply channel basic info with reelItemRenderer and gridPlaylistRenderer, replace them with shortsLockupViewModel and lockupViewModel, but the structure is totally different from before, so sorry for that I cannot fix it immediately. I'll try to fix it.

#125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants