Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

fixed error when requesting last continuation #18

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

Kylof61034
Copy link
Contributor

This error appears, when requesting the last continuation. With this little fix it now works fine.

node_modules\yt-channel-info\app\youtube-grabber.js:160
      nextContinuation = continuationItem[0].continuationItemRenderer.continuationEndpoint.continuationCommand.token
                                             ^

TypeError: Cannot read property 'continuationItemRenderer' of undefined
    at Function.getChannelVideosMore (node_modules\yt-channel-info\app\youtube-grabber.js:160:46)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)

The problem was that continuationItem was not undefined, but an empty array.

Copy link
Member

@PrestonN PrestonN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@PrestonN PrestonN merged commit 5665bb1 into FreeTubeApp:master Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants