fent / fent/node-ytdl-core

getMedia contents undefined

Open
#874 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
4.7k
Forks
852
PR merge metrics
No merged PRs in 30d

Description

(Sorry for my english)
I have used their npm to call songs but I have had a few problems.
Calling the song "Bohemian Rhapsody" I had no problems, but calling another song called "Project 86 - Evil" the playback drops. Investigating I found that with the second song the value `info.response.contents.twoColumnWatchNextResults.results.results.contents`
brings undefined, but with the first one not, I solve this problem by adding a conditional operator and what I return is an empty array so that the playback does not crash.

The error gives in the following line:
https://github.com/fent/node-ytdl-core/blob/e14c9da91fbb383e8cc84fc6dab2febd13ee277d/lib/info-extras.js#L25

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.